$users = Users::where('status_id', 'active') ->where( 'created_at', '>', Carbon::now()->subDays(30)) ->get(); date('Y-m-d 00:00:00', strtotime("-30 days");