Cron without command line

We had to send a newsletter with the Campaing Plugin. This plugin required to run

    php artisan campaign:run

every 15min. This send the emails in batch.

To solve the problem, we are using the Artisan Facade. Create a routes.php file in the root folder of the plugin with the route:

    use Route;
    use Artisan;

    Route::get('/campaign_run', function () {
    return Artisan::call('campaign:run');

OctoberCMS documentation about routing :

Posted in OctoberCMS on Mar 16, 2017