I´m define my method controller index() and I pass param title for show in my html view:
class WebController extends BaseController{
public $layout = 'layout.base';
/*Index*/
public function index(){
$this->layout->title = 'Index Title';
return View::make('pages.index');
}
}
But when I load the page return this error:
And in my 'app\views\layout\base.blade.php' i have:
<!DOCTYPE html>
<html lang="es">
<head>
<title>{{$title}}</title>
@section('metas')
@show
@section('styles')
@show
</head>
This is my route.php:
Route::get('/index',['as' => 'pages.index', 'uses' => 'WebController@index']);
How to fix this? Thank you very much!