1
I’m using the Laravel 5.3 and in the course I’m doing asks for on the Routes put the following line:
Route::get('/produtos', 'ProdutoController@lista');
But putting it that way is a mistake:
NotFoundHttpException in RouteCollection.php line 161:
To work I have to put:
Route::get('/', 'ProdutoController@lista');
But when putting another page to detail the products no longer works when putting for example:
Route::get('/mostra', 'ProdutoController@mostra');
Are you trying to access the route correctly? Which link you call?
– JuniorNunes
Htaccess is just right?
– Wallace Maxters
I’m accessing : http:/localhost/stock/public/ and it accesses the product list. But to call the product details you need to put: Route::get('/', 'Productocontroller@lista'); losing access to the list method. What is not working is to put the '/products in the get'. htaccess is the default, I haven’t changed anything.
– Marcelo
You are wrong! You should not access the public folder.
public
is the root of the application written in Laravel.– Wallace Maxters