Skip to content

Glossary: Laravel

env()

A function used inside config/ files to read a value from .env, with a fallback, as env('APP_NAME', 'Laravel').

Where the book teaches it

Related terms

.envconfig()