Created
March 30, 2017 01:58
-
-
Save febridev/642e37d02f3be6c462e65f1e1d5a89c9 to your computer and use it in GitHub Desktop.
run call artisan outside command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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