Support the ongoing development of Laravel.io →
posted 9 years ago
Blade
Last updated 1 year ago.
0

I've used a base template for my site and I extend from this in all my pages

 @extends('master')

I have also then created a further template for sub pages which includes the extend as above. I then reference that in the sub pages:

@extends('subpage')

The sub page includes the master content and then the subpage content. You can also then append to any sections content from the master layout.

I also have a number of partials which I reuse around my site

@include('widget')
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

emilmoe emilmoe Joined 23 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.