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  How to convert categorical data to numerical data in Python?

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.