Get difference between two date type column in a Query
I want to find return a query like
return $query->whereRaw('DATEDIFF(day,infos.date_of_enrollment, date("Y- m-d"))','>',$svc_length_in_days);
exactly what should be the query in eloquent?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!