/** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->call(function () { $manager = new NoFManager(); $manager->run(); })->cron('* * * * *'); }
public function test1() { $manager = new NoFManager(); $manager->run(); }