Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

carbon date minus days

$users = Users::where('status_id', 'active')
           ->where( 'created_at', '>', Carbon::now()->subDays(30))
           ->get();


date('Y-m-d 00:00:00', strtotime("-30 days");
 
PREVIOUS NEXT
Tagged: #carbon #date #days
ADD COMMENT
Topic
Name
3+7 =