Courses

How to Create Laravel Package: Step-by-Step Example

Extending Blade Layout

In our package, we will have quite a few Views: index/create/edit for the Roles and the same list for the Permissions. They should all have one design layout, right? So how do we incorporate the layout and how do we extend it in our Blade files?

Of course, there are a few ways to structure it, as it would be in any Laravel project, but I will go with this structure below...

The full lesson is only for Premium Members.
Want to access all 12 lessons of this course? (33 min read)

You also get:

  • 69 courses (majority in latest Laravel 11)
  • Premium tutorials
  • Access to repositories
  • Private Discord