Seems like your Laravel app is accesible via an Apache HTTP alias, because your URL looks like:
http://localhost/laravel/. If this is the case and assuming that
http://localhost/laravel is pointing to your public directory, then follow these steps:
- Try to navigate to your expected route prepend it with
/index.php/, in your case:
http://localhost/laravel/index.php/users. If it works (no 404) then you problem is with the Rewrite Module configuration of Apache HTTP, you should follow the next steps.
- Edit the file
- Under the line
- Try to navigate to an existing route.
Basically, if you app resides in a alias or virtual directory (say
http://localhost/alias) you should add an entry in your rewrite rule to rewrite the base directory with