+ add namespace example

Signed-off-by: Christoph Potas <christoph286@googlemail.com>
This commit is contained in:
Christoph Potas 2018-06-28 09:06:24 +02:00
parent 609960db48
commit cc45b5a1cb
No known key found for this signature in database
GPG Key ID: D4A4190F8260D7B0

View File

@ -23,6 +23,9 @@ are public, so you access the settings like any other property::
// Get shared instance with config function
$config = config( 'EmailConfig' );
// Access config class with namespace
$config = config( 'Config\\EmailConfig' );
// Access settings as class properties
$protocol = $config->protocol;
$mailpath = $config->mailpath;