Laravel — P65: Environment Directive vs Function

Dino Cajic
Geek Culture
Published in
4 min readMar 13

--

Dino Cajic on using environmental directives in Laravel’s Blade Components

There comes a time when you want to use environmental variables in your Blade components. But, how do you do it? There are a couple of different ways. We’ll take a look at the env() function first and then the directive itself.

--

--

Dino Cajic
Geek Culture

Author of An Illustrative Introduction to Algorithms. IT Leader with a B.S. in Computer Science, a minor in Biology, and a passion for learning.