这个工具是管理Laravel计划任务的web管理页面
$ composer require laravel-admin-ext/scheduling -vvv
$ php artisan admin:import scheduling
打开http://localhost/admin/scheduling
访问。
打开app/Console/Kernel.php
, 试着添加两项计划任务:
class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')->everyTenMinutes();
$schedule->command('route:list')->dailyAt('02:00');
}
}
然后就能在后台看到这两项计划任务的详细情况,也能直接运行这两个计划任务。