Created
March 24, 2021 02:47
-
-
Save lam0819/74802a0e50d3ce80e36f0d4d14975a3f to your computer and use it in GitHub Desktop.
Simple Clear Cache in Laravel route
This file contains 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() { | |
Artisan::call('cache:clear'); | |
return "Cache is cleared"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment