Php Artisan Clear Route

[Solved] Php Artisan Clear Route | Php - Code Explorer | yomemimo.com
Question : clear routes without using command laravel

Answered by : muhammad-ishaq

//just create below route and visit it.
use Illuminate\Support\Facades\Artisan;
Route::get('/clear-cache', function () { Artisan::call('route:cache'); Artisan::call('config:cache'); Artisan::call('cache:clear'); Artisan::call('view:clear');	return 'clear';
});

Source : | Last Update : Thu, 29 Jun 23

Answers related to php artisan clear route

Code Explorer Popular Question For Php