6 months ago

Get difference between two date type column in a Query

Posted 6 months ago by nionta

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.