laravel blade, how to append to a section
If you look to laravel official documentation http://laravel.com/docs/4.2/templates It says that giving this layout:
<!-- Stored in app/views/layouts/master.blade.php -->
<html>
<body>
@section('sidebar')
This is the master sidebar.
@show
<div class="container">
@yield('content')
</div>
</body>
</html>
Extended by this view
@extends('layouts.master')
@section('sidebar')
<p>This is appended to the master sidebar.</p>
@stop
@section('content')
<p>This is my body content.</p>
@stop
Will append to the section . But actually if you try is it doesn't append, it just override the content from the extended template.sidebar
I heard about others blade function like ... no one seems to work.@append, @prepend, @parent
Beside, this example in the official doc which doesn't work, I find that the blade documentation is very poor. There's nothing about blade function like for instance.@parent