1
votes

i'm new to laravel, still learning, and i have 2 routes with controllers and function index

this is my routes.php

Route::get('/', 'HomeController@index');

Route::get('accessories', 'ProductsController@index');

the first one works well but i don't know why the second doesn't:

Not Found

The requested URL /laravel/public/accessories was not found on this server.

thanks.

1
Have you copied the supplied .htaccess file in that directory?raina77ow

1 Answers

1
votes

Try to access yourwebsite.com/index.php/accessories