I was wondering if this would be a way to go to create a command for a task, or at least if t would work? Thanks in advance!
$schedule->command('someCommand')
->call('Path\To\MyController@method'{
})
->dailyAt('00:00');
I was wondering if this would be a way to go to create a command for a task, or at least if t would work? Thanks in advance!
$schedule->command('someCommand')
->call('Path\To\MyController@method'{
})
->dailyAt('00:00');
Yes, there is a way to create your own custom commands. Read this tutorial to create your own artisan command:
https://laravel.com/docs/5.1/artisan