When you are writing a Laravel package, usually you need a config file.Also, we will publish the config file in the “boot” method of the service provider.Then, in the “register” method you can get the configuration and use it when you create the instance of “Facade”. Let’s see a typical config file:
Recent Posts
Top Posts
- WordPress actions and filters in Javascript
- Chroma Key in Adobe Flash
- 3D interecative animation card with Papervision
- WordPress: actions run during a typical request by admin
- WordPress: actions run during a typical request by frontend
- WordPress: useful shortcode for your Custom Post Type
- A different way to handle the config in Laravel packages
- MySQL: random select in a pagination context
- WordPress Theme API with Guzzle
Follow me on Twitter
My Tweets© 2021 Undolog | Research & Development Blog