Answers for "laravel route run artisan command"

0

execute artisan command from route

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

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

    dd("Cache is cleared");

});
Posted by: Guest on May-11-2021

Code answers related to "laravel route run artisan command"

Browse Popular Code Answers by Language