Its basically like the docs show... https://laravel.com/docs/5.6/artisan#programmatically-executing-commands Route::get('/foo', function () { Artisan::call('storage:link'); });