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  PHP code snippet - How to go to index page on clicking a button in html?

Leave a Reply

Your email address will not be published. Required fields are marked *

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