A simple starting point for use in Laravel 5.1. Based on Flexible master layout by Sercan Çakır.
- Download
html5.blade.phpandapp.blade.phpinto your application'sresources/viewsfolder. - In your app's custom views, extend
appand 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.phpwith your site-wide templating as-needed.