Skip to main content

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...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

No comments yet…