@extends('layout') laravel. Blade Template System seems like Not working

laravel, php

Solution

That should work if you have a template file at /app/views/layout.blade.php that contains

<p>Some content here</p>

@yield('content')

<p>Some additional content here</p>

Then in your /app/views/user.blade.php, the content

@extends('layout')

@section('content')

<p>This is the user content</p>

@stop

If you call `return View::make('user')` you should have the compiled content

<p>Some content here</p>

<p>This is the user content</p>

<p>Some additional content here</p>

I hope that helps clarify things for you. If not, can you provide your template file locations and the relevant content?

Problem

I tried to use the laravel's template system: `blade` but seems like not working when using the code below in the file `users.blade.php`: ``` @extends('layout') @section('content') Users! @stop ``` and browser, ``` @extends('layout') ```

Original source