Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

eloquent get record older than 2 days

$data = YOURMODEL::where('created_at', '<=', Carbon::now()->subDays(2)->toDateTimeString())->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #eloquent #record #older #days
ADD COMMENT
Topic
Name
2+6 =