Answers for "how to get created at as date and month in laravel and get data"

PHP
1

get current month record in laravel

User::whereMonth('created_at', date('m'))
->whereYear('created_at', date('Y'))
->get(['name','created_at']);
Posted by: Guest on February-09-2021

Code answers related to "how to get created at as date and month in laravel and get data"

Browse Popular Code Answers by Language