Courses

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

In our specific package case, we didn't need some features, but I do want to mention them and show you how to use them, in case your packages need them.


Eloquent Models

This one is pretty easy, you just create a Model class in the /src/Models of the package and namespace it correctly.

Then, your Controllers (or the Controllers outside the package) may just use the Model by loading it from the correct namespace....

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

You also get:

  • 58 courses (1054 lessons, 46 h 42 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord