📜  如何在 laravel 中手动删除缓存 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:53.581000             🧑  作者: Mango

代码示例1
//You can call an Artisan command outside the CLI.

Route::get('/clear-cache', function() {
    $exitCode = Artisan::call('cache:clear');
    // return what you want
});