I'm just getting started with Laravel. I've just installed it. But when I'm making a new route it's not working, it's saying:
The requested URL /laravel/public/test was not found on this server.
This is currently my routes.php:
Route::get('/', function () {
> return view('welcome'); });
> Route::get('/test', function () {
> return view('test'); });
And of course I've made a view called test. When I go to:
I'm seeing the Laravel start template. But when I go to:
> http://localhost/laravel/public/test
It's not working?
And why can I also visit:
Thankyou.
EDIT:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>