Answer the question
In order to leave comments, you need to log in
How to correct such request in Laravel?
$users = DB::table('users')->select(DB::raw('id,name,bday,DATEDIFF(
CONCAT(
YEAR(CURDATE()),
'-', MONTH(bday),
'-', DAY(bday)
),
CURDATE()
) AS daysto'))->whereBetween('daysto', [-10, 10])->get();
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