DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+6 =
Submit