skip to Main Content

get route by name not id – laravel 10

route by {id} for example /author/{id} isn't problem form me but i want to have route by {name} for example /author/{name} i have code idea but i get 404 not found error: php 8.2 laravel 10 code: Route Route::get('/authors/{authorname}', [AuthorController::class,…

VIEW QUESTION
Back To Top
Search