I am a new bee in Laravel. I created Laravel using this tutorial . I installed a virtual host, on my virtual host I wrote this.
<VirtualHost *:80> ServerName ranjitalaravel.com DocumentRoot "/var/www/html/laravel4/public" <Directory "/var/www/html/laravel4/public"> </Directory> </VirtualHost>
In my host file ie / etc / hosts
127.0.0.1 ranjitalaravel.com
When I type http://ranjitalaravel.com/ in my browser, the entire list of files inside my laravel directory is displayed. But when I type the house after it, it shows me: "The requested URL / house was not found on this server." I wrote this code in the route.php file inside the application folder.
Route::any('home', function() { return View::make('home.index'); });
source share