How to Publish Config Files in Laravel 11?
Hi,
In this short post, we will show you how to publish config files in laravel 11 framework.
Laravel 11 comes with a slimmer application skeleton. Laravel 11 introduce streamlined application structure, per-second rate limiting, health routing etc.
By default in Laravel 11, you will see empty config folders. If you want to change the configuration, you can do it using the .env file. However, if you need to make changes to config files, you need to publish them using an artisan command.
Laravel 11 provides the following commands to publish config files.
Laravel Publish Single Config File:
You can run the following command to publish a single config file:
php artisan config:publish
Now, you will have list of config files, choose one and it:
Laravel Publish All Config Files:
You can run the following command to publish all configuration files:
php artisan config:publish --all
Then you can work on it.
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Create Custom Class in Laravel 11?
- How to Publish the lang Folder in Laravel 11?
- What’s New in Laravel 11: New Features and Latest Updates
- How to Install Laravel 11 Application?
- How to Add Mediumblob Data Type using Laravel Migration?
- How to Add Blob Data Type using Laravel Migration?
- How to Drop Index in Laravel Migration?
- How to Migrate SQL File in Laravel Migration?
- How to Use Factory in Seeder Laravel?
- How to Run All Seeders in Laravel?
- Laravel US State Seeder Example
- How to Run Specific Seeder in Laravel?