tick(1000 * 60 * 60, function () { $storeOrderRepository = app()->make(StoreOrderRepository::class); $time = date('Y-m-d H:i:s', strtotime('- 7 day')); $ids = $storeOrderRepository->getFinishTimeoutIds($time); foreach ($ids as $id) { Queue::push(OrderReplyJob::class, $id); } }); } }