A simple starting point for use in Laravel 5.1. Based on Flexible master layout by Sercan Çakır.
- Download
html5.blade.php
andapp.blade.php
into your application'sresources/views
folder. - In your app's custom views, extend
app
and hook into the yield points to flesh out your pages:{{-- myfile.blade.php --}} @extends('app', [ 'title' => 'My Page Title', ]) {{-- the "content" section is the main body of the page. --}} @section('content') <h1>Hello, world!</h1> @stop
- Continue fleshing out
app.blade.php
with your site-wide templating as-needed.