ItSolutionStuff.com

How to Publish Config Files in Laravel 11?

By Hardik Savani β€’ September 4, 2024
Laravel

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

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

πŸ“Ί Subscribe on YouTube

We Are Recommending You

β˜…

How to Create Custom Class in Laravel 11?

Read Now β†’
β˜…

How to Publish the lang Folder in Laravel 11?

Read Now β†’
β˜…

What’s New in Laravel 11: New Features and Latest Updates

Read Now β†’
β˜…

How to Install Laravel 11 Application?

Read Now β†’
β˜…

How to Add Mediumblob Data Type using Laravel Migration?

Read Now β†’
β˜…

How to Add Blob Data Type using Laravel Migration?

Read Now β†’
β˜…

How to Drop Index in Laravel Migration?

Read Now β†’
β˜…

How to Migrate SQL File in Laravel Migration?

Read Now β†’
β˜…

How to Use Factory in Seeder Laravel?

Read Now β†’
β˜…

How to Run All Seeders in Laravel?

Read Now β†’
β˜…

Laravel US State Seeder Example

Read Now β†’
β˜…

How to Run Specific Seeder in Laravel?

Read Now β†’