You can easily get your configuration values using the
config helper function from anywhere in your running application.
You can define your credentials which you can access from anywhere by using global
config helper function.
You can set config value at runtime if value does not exist and most of the people are using
.env file to set some credentials as details of database.
- $value = config('app.timezone');
You can also define your custom config variable as record per page for pagination in
You can change your timezone at runtime too.
- config(['app.timezone' => 'YOUR TIME ZONE']);