I have a minutes integer column in the db,any way to make the below query work without an additional query? Laravel 8 if it matters.
Contest::latest()->where('created_at','>', Carbon::now()->subMinutes('minutes')->toDateTimeString())->paginate(4)
;
Reponse ErrorException: A non-numeric value encountered in file