Answer the question
In order to leave comments, you need to log in
SQL curdate() in Postgres?
In MySQL:
$records = DB::table('users')->select(DB::raw('*'))
->whereRaw('Date(created_at) = CURDATE()')->get();
dd($records );
$records = DB::table('users')->select(DB::raw('*'))
->whereRaw('Date(created_at) = CURRENT_DATE()')->get();
dd($records );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question