Source: blog.deleu.dev

Laravel without .env files
I worked with Laravel and Docker between 2016 and 2022. During all these years I had a small papercut problem that involves environment variables.

I need to configure Laravel with the right configuration based on the environment that Laravel is booting up.

With this change, Laravel will not be bootstrapping the Environment variable package and I can 100% focus on my own environment variable setup.

Automation tests processing time has also improved slightly because Laravel doesn't need to run the LoadEnvironmentVariables process and read several environment variables.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners