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
- Enhancing NextJS Projects with Mantine UI: A Seamless Experience in TypeScript
- WP Bones 1.1.5 Released
- Styled Components attributes
- WP Bones: a plugin framework for Laravel lovers
- How to force ANSI color output in your artisan command
- A different way to handle the config in Laravel packages
- Laravel-Mix: avoid jQuery
- WordPress: useful shortcode for your Custom Post Type
- How to create an object that acts like an array
- dangerouslySetInnerHTML stateless component
Follow me on Twitter
My Tweets© 2024 Undolog | Research & Development Blog