.env
and .env.example
These files specify configurations for the application
<aside> 💡
Files mentioned in .gitignore
aren’t committed. .env
file shouldn’t be committed and is put in .gitignore
</aside>
.env
Configurations for application
APP_TIMEZONE
: Time zone for applicationSESSION_DRIVER
: Where to store the sessions, either database
or file
SESSION_LIFETIME
: How long should a session last.env.example
Sample configurations for application, mirroring .env
without secrets such as tokens and passwords
config
DirectoryValues in .env
are used in .php
files inside config
directory
app.php
sets configurations for general application informationcache.php
sets configurations for caching behaviorlogging.php
sets configurations for loggingroutes/web.php
FileThis file is used to specify routes
<aside> 💡
A route is a function that returns something
</aside>