Artisan::call() outside the Laravel framework
问题 I want to create a cron job for Laravel 5.2 My shared host (on OVH), only allows me to point to the full path of a file, and I am not able to use the recommended Cron entry from Laravel's docs, ie : * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1 Therefore, I have to call the Artisan command from a .php file, outside of the Laravel framework. Here is what my public/cron.php file looks like so far: <?php require __DIR__.'/../bootstrap/autoload.php'; use Illuminate\Support\Facades