This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

pawel5939
pawel5939

What is the best way to set scheduled tasks (Artisan commands ) within plugins? Laravel does it in app/Console/Kernel.php and you can also do it in the Vendor folder in October (I don't feel that this is a good place for plugin related tasks scheduling).

in particular:



 protected $commands = ['namespace\classname'];
 protected function schedule(Schedule $schedule)
    {
       $schedule->command('commandname');
    }

I can't find in the documentation how to best handle this within plugins.

Last updated

planetadeleste
daftspunky

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.