call(function () { $timestamp = now()->timestamp; Order::query()->whereNotNull('freeze_expired_at')->where('freeze_expired_at', '<=', $timestamp) ->chunk(100, function ($orders) { foreach ($orders as $order) { \product_storehouse_order_free_up($order->id); } }); })->everyMinute(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__ . '/Commands'); require base_path('routes/console.php'); } }