I just set up my composer and install a new laravel 5.4 project, and i set up a virtual host for apache server .
The virtual Host configuration
The home page laravel.app
of the new application working fine
But when i add a new view and i set a route for it like example :
//This is The default Home page route
Route::get('/', function () {
return view('welcome');
});
// This is the new Route
Route::get('/hello',function(){
return view('hello'); // I created another view with the name hello.blade.php
});
When i try to access to it using the link laravel.app/hello
i get this error :
Not Found
The requested URL /hello was not found on this server. Apache/2.4.18 (Ubuntu) Server at laravel.app Port 80
I want to mention that my os is Ubuntu 16.04