1. Home
  2. Laravel
  3. Config

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

#laravel#helper
$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.
copy
Full Laravel cheatsheet
NordVPN NordVPN