How to Use Laravel Config and Environment Variables | Laravel From Beginners to Real-World Developer
In this tutorial, we’re going to dive into how configuration works in Laravel, focusing on the config directory, environment variables, and how they work together to give your app flexibility across environments. Whether you’re new to Laravel or just never looked too closely at how the .env file connects to your config files, this video is going to break it all down in a simple, beginner-friendly way.
🧑🏼 💻 Need a Laravel agency?
Do you need assistance with your next project in Laravel? Contact my Laravel agency for help: hhttps://www.codewithdary.com/
🔥 Resources
Twitter: https://twitter.com/codewithdaryInstagram: https://www.instagram.com/codewithdary/Blog: hhttps://blog.codewithdary.com/GitHub: hhttps://github.com/codewithdary/nova-custom-fields/TikTok: https://www.tiktok.com/@codewithdaryl
⌛ Timestamps
00:00 - Introduction
01:21 - The env() function & .env file
02:27 - Why use config if you have env
03:16 - Defining new variables and outputting them
06:55 - Nested configuration values
09:07 - Outro
#laravel #codewithdary #php #coding

