How can I call command schedule via url on the laravel?
问题 I using laravel 5.6 I set my schedule in the kernel.php like this : <?php namespace App\Console; use App\Console\Commands\ImportLocation; use App\Console\Commands\ImportItem; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { protected $commands = [ ImportLocation::class, ImportItem::class, ]; protected function schedule(Schedule $schedule) { $schedule->command('inspire')->dailyAt('23:00'); } protected