1. Home
  2. Laravel
  3. Config

Returns the configuration record value using the dot notation. Second argument lets you pass an optional default value.

$appname = config('app.name', 'Default name');
// Go to the /config folder, look into the app.php file and get me the value of the 'name' record if it exists.
Full Laravel cheatsheet