You change what to what? And what url gives 404?
Jan 7, 2025
9
Level 1
The problem is changing the URL route name
Hello everyone and happy New Year!
The problem is changing the URL (laravel)
In the file web.php
Route change
Route::get('service', [ServiceControllerForFront::class,'index'])->name('front.services'); Route::get('service/{slug}', [ServiceControllerForFront::class,'detail']);
I regret that service/ is service/ ... but as soon as I change the route it shows a 404 error. Where am I wrong?
Please or to participate in this conversation.