After getting my Laravel Homestead up and running, I'm facing a new problem.
Even after some googling, I can't find a solution for setting up routes in Laravel Homestead.
Here is my routes.php (I created files like in the comments) :
<?php
// ===============================================
// STATIC PAGES ==================================
// ===============================================
// show a static view for the home page (app/views/home.blade.php)
Route::get('/', function()
{
return View::make('home');
});
// about page (app/views/about.blade.php)
Route::get('about', function()
{
return View::make('about');
});
// work page (app/views/work.blade.php)
Route::get('work', array('as' => 'work', function()
{
return View::make('work');
}));
Route::get('users', function()
{
return View::make('users');
});
Thank you in advance for any piece of advice.
In Laravel5 the views are located in
resources/views
and not in app/views
Place all your views to resources/views and it should work. You get the welcome page because it is shipped by default in Laravel.