Answers for "laravel how to compare two dates in laravel"

PHP
1

laravel date diff

$expDate = Carbon::now()->subDays(15));
Table::whereDate('exp_date', '<',$expDate);
Posted by: Guest on August-14-2021

Code answers related to "laravel how to compare two dates in laravel"

Browse Popular Code Answers by Language