I need to access a method of my UserController in laravel scheduler function,
protected function schedule(Schedule $schedule) { $schedule->command('foo') ->hourly(); }
Is it possible?
try it:
$schedule->call('Full\Namespace\YourController@method') ->hourly();