I am trying to extract objects from Model \"Users\" whose created_at date has been more than 30 days from today.
created_at
Carbon::now() ==> I want a
Use subDays() method:
$users = Users::where('status_id', 'active') ->where( 'created_at', '>', Carbon::now()->subDays(30)) ->get();