📅  最后修改于: 2022-03-11 15:00:53.581000             🧑  作者: Mango
//You can call an Artisan command outside the CLI.
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
// return what you want
});