layout/section/super

The @layout tag allows you define the layout template for the current template.

@layout('layouts/main')

section

The template using the layout must define all the markup inside the sections exported by the layout. Any content outside of the @section tag is ignored.

@layout('layouts/main')
@section('body')
The content for the body section
@end
@section('footer')
The content for the footer section
@end

The layout also has to export the sections with the same name.

@!section('body')
@!section('footer')

super

The @super tag allows you to inherit the existing content of the section. It is an inline tag and does not accept any arguments.

@layout('layouts/main')
@section('scripts')
@super
<script src="{{ asset('autocomplete.js') }}"></script>
@end