Courses

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

The next step is to load the same "It works" but from the Blade file, and we will see how to register our View in the Service Provider.

First, we create the file itself:

packages/laraveldaily/laravel-permission-editor/resources/views/roles/index.blade.php:

It works from Blade!

Then, we need to register the views to be loaded from that location. Again, as in other configurations, it's done in a Service Provider...

This lesson is only for Premium Members.
Want to access all lessons of this course?

You also get:

  • 58 courses (1056 lessons, 44 h 09 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord