I have this code:
in laravel/resources/views/users.blade.php
@extends('layouts.main')
@section('content')
<p>
Here's your content
</p>
@stop
in laravel/resources/views/layouts/main.blade.php
<html>
<head>
{{-- Common Header Stuff Here --}}
</head>
<body>
<div class="navigation">
@section('navigation')
<a href="/">Home</a>
<a href="/contact">Contact</a>
@show
</div>
<div class="container">
@yield('content')
</div>
in routes.php
Route::get('users', function()
{
return View::make('users');
});
When i launch my site (localhost/laravel/public/users) It prints only:
@extends('layouts.main')
what's wrong here? I'm using laravel 5
Thanks in advance, i'm newbie with laravel
FIIIIIIIIXEEED
@extends can't be indented, you can't put anything before it even whitespace.