//You can call an Artisan command outside the CLI. Route::get('/clear-cache', function() { $exitCode = Artisan::call('cache:clear'); // return what you want });