subWeek(); PrivateKey::where('created_at', '<', $oneWeekAgo) ->get() ->each(function ($privateKey) { $privateKey->safeDelete(); }); } }