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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners