Accessing mail will return a dictionary with all the options.
Accessing mail.from_email will return the FROM_EMAIL value
Accessing mail.drivers.smtp.port will return the port value for smtp driver.
Getting Value
To read a configuration value one can use the Config facade:
or the config helper:
Setting Value
Setting configuration values is achieved through projet configuration files.
Overriding Value
However, you can override on the fly a configuration value with the Config facade:
This should be done sparingly as this could have unexpected side effects depending at which time you override the configuration option.
This is mostly useful during tests, when you want to override a configuration option to test a specific behaviour:
But if you simply want to have different configuration depending on the environment (development, testing or production) you should rely instead on environment variables used to define configuration options.