Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 384 Bytes

common-laravel-template-structure.md

File metadata and controls

24 lines (16 loc) · 384 Bytes

The common Laravel template structure

First, create a file that defines the structure of your page

layout.blade.php

@include('includes.header')

@yield('content')

@include('includes.footer')

Then create files that yield content

index.blade.php

@extends('common_template')

@section('content')
    {{$data['title']}}
@endsection