Skip to content
This repository was archived by the owner on Jan 23, 2018. It is now read-only.

Blade Wrapper

Sam Rapaport edited this page Jul 11, 2016 · 3 revisions

A base Blade wrapper located in resources/views/layouts/base.blade.php is intended to be the base layout that all your views extend. It contains the links to your main compiled CSS and JavaScript files and defines default sections to extend.

To use this wrapper, simply add an @extends Blade directive to your template file(s):

@extends('layouts.base')

You can now inject content into the layout's sections using @section directives. Take a look at the layouts.base view to see all the extendable sections. There are quite a few by default, but these can obviously be tailored to your needs.

Clone this wiki locally