Skip to content

Commit 954cc0d

Browse files
committed
docs: add ::class sample
1 parent 81859f2 commit 954cc0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user_guide_src/source/general/configuration.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ You can access configuration files for your classes in several different ways.
3131
$config = config('Pager');
3232

3333
// Access config class with namespace
34-
$config = config( 'Config\\Pager' );
34+
$config = config('Config\\Pager');
35+
$config = config(\Config\Pager::class);
3536

3637
// Creating a new object with config function
3738
$config = config('Pager', false);

0 commit comments

Comments
 (0)