I'm studying Laravel and in parallel creating some projects, but I'm debating with some problems, when I'm calling the show();
method
Example controller:
Route::resource('/', 'TEstController');
The index method is called without problems, loading a listing that I created on its respective blade.
When I call method show();
passing a second parameter in URL simply returns me the error:
Example url:
http://127.0.0.1:8000/1
Error code:
NotFoundHttpException in RouteCollection.php line 179:
Error Image:
The strange thing is that when I call the show () method; inside a sub directory it works without any problem.
Example:
http://127.0.0.1:8000/test/1
Controller:
Route::resource('/test', 'TEstController');
Now comes the doubt is there any way I can call the show();
method at the root of my project?