Build a Monthly Subscription App with Laravel Cashier: Lesson 7 of 36

Blade Templating

Up Next


Autoplaying in 7 seconds!


Laravel Blade makes it very easy to use a single layout across all your application. This way you don't have to repeat code in multiple places.

Create three folders:

- views/layouts
- views/pages
- views/partials

For a page to use a certain layout, add the following to the top of the file:

Table of Contents


    To include child views (partials):


    To pass in a content section:

    // in the layout file
    // in the page file
        i am the content

    Chris Sevilleja

    176 posts

    Founder of Google Developer Expert in Web Technologies. Slapping the keyboard until something good happens.