Skip to content

Instantly share code, notes, and snippets.

@febridev
Created March 30, 2017 01:58
Show Gist options
  • Save febridev/642e37d02f3be6c462e65f1e1d5a89c9 to your computer and use it in GitHub Desktop.
Save febridev/642e37d02f3be6c462e65f1e1d5a89c9 to your computer and use it in GitHub Desktop.
run call artisan outside command
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
// return what you want
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment