Skip to content

PHP code snippet – How many users can a cron handle in laravel in single run?

$schedule->call(function () {
            DB::table('users')->whereYear('last_login_at','<',date('Y')-1)->delete();
        })->daily();
See also  CSS code snippet - How to include in handlebars?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.