Courses

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

You may want your package users to customize not only the Views and Assets but also some options to be configurable.

For that, we create our config file and allow it to be publishable. Then, in the package source, we can refer to the values as config('name', 'default_value'), as you would do in any typical Laravel project...

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

You also get:

  • 68 courses (1183 lessons, 43 h 18 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord