I created an easy to use API to help businesses do incredible things with AI.
Laravel

How to publish config files in Laravel 11

Benjamin Crozat
Modified on Mar 21, 2024 0 comments Edit on GitHub
How to publish config files in Laravel 11

To publish additional configuration files in Laravel 11, use:

php artisan config:publish

Laravel will then ask you to choose which configuration file you want to publish.

And by the way, you can also publish them all at once using:

php artisan config:publish --all

Why is this necessary now? Because starting from Laravel 11, new projects get to experience a slimmer skeleton. Part of the efforts to make it happen was:

  • Cleaning up the configuration files (some values were actually removed).
  • Updating the .env.example file with more environment variables to make the framework more configurable in one place.
  • Reducing the amount of published files, which can be overwhelming for new developers. For instance, the cors.php, hashing.php, and view.php files are missing.

Be the first to comment!

Get help or share something of value with other readers!

Great deals for enterprise developers
  • Summarize and talk to YouTube videos. Bypass ads, sponsors, chit-chat, and get to the point.
    Try Nobinge →
  • Monitor the health of your apps: downtimes, certificates, broken links, and more.
    20% off the first 3 months using the promo code CROZAT.
    Try Oh Dear for free
  • Keep the customers coming; monitor your Google rankings.
    30% off your first month using the promo code WELCOME30
    Try Wincher for free →
The latest community links
- / -