execute artisan command from route

81

Route::get('clear_cache', function () {

    \Artisan::call('cache:clear');

    dd("Cache is cleared");

});

Comments

Submit
0 Comments