Laravel Clear Route

[Solved] Laravel Clear Route | Php - Code Explorer | yomemimo.com
Question : laravel clear route cache

Answered by : der-divyaraj

php artisan cache:clear
php artisan route:cache 

Source : | Last Update : Thu, 18 Mar 21

Question : why laravel need clear route cache if change route

Answered by : muhammad-romadhoni-x4arew307k7s

{"tags":[{"tag":"textarea","content":"\/\/ try restart server and anything else first\nphp artisan route:cache\n\/\/ if route clear not effect anything use this\nphp artisan optimize:clear\n","code_language":"php"}]}

Source : | Last Update : Thu, 26 Jan 23

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

Question : delete route method in laravel

Answered by : muddy-mallard-xktsb3lmp9xa

<form method="POST" action="{{ route('route.name', [ 'id'=> $item->id ]) }}"> @csrf <input type="hidden" name="_method" value="DELETE"> <button type="submit" class="btn btn-danger btn-icon"> <i data-feather="delete"></i> </button> </form>

Source : | Last Update : Sun, 25 Oct 20

Answers related to laravel clear route

Code Explorer Popular Question For Php