I'm having a problem with my laravel application using VirtualHosts, I can see the home page of laravel but when I try to make a route like advkit.dev/login I get "The requested URL /login was not found on this server." So all my routes aren't working does anyone know what I need to change in my code to make routes work. I also have set debug to true and I only get the debuging console on the home page e.g advkit.dev no where else
route:
<?php
Route::get('/', function()
{
return View::make('hello');
});
// login.blade.php
Route::get('/login', function() {
return View::make('login');
});
hosts
127.0.0.1 www.localhost.com
127.0.0.2 advkit.dev
httpd-hosts file
<VirtualHost advkit.dev>
DocumentRoot C:\wamp\www\advkit\public
ServerName advkit.dev
</VirtualHost>