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? (29 h 46 min)

You also get:

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

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.