I am probably miss something, but can't figure out problem myself.
I am getting white screen (no logs in storage/logs and 200 code in Apache logs). I think that return View::make() is not passing view string.
In routes.php
Route::get('/home', array('as' => 'home', 'uses' => 'HomeController@index'))->before('guest');
In filters.php
Route::filter('guest', function(){
if (Auth::check() === true) {
return Redirect::route('dashboard')->with('flash_notice', 'You are already logged in!');
}});
In HomeController.php
class HomeController extends BaseController {
public function index()
{
return View::make('login');
}}
In views/login.blade.php
@extends('layouts.login')
In views/layouts/login.blade.php just HTML
Once I change return View::make('login'); to echo View::make('login'); I get rendered view.
I did install same codebase previously and it worked (yes, it was Laravel 4 as well), so I wonder this somehow related to new library versions.
Thank you for your help.
protected function setupLayout() { if (is_null($this->layout)) { $this->layout = View::make($this->layout); } }And layout is null.