Laravel Classroom image

osdyui
 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3|Last
Lessons:-Configuration

19.2 Reading Configuration
We can read a configuration setting using the get() method..
1 <?php
2
3 $option = Config::get('ourconfig.size');
Simply pass a string to the method, with the name of the file a period (.) and the name of the
configuration key. The value will be returned. If your configuration file is in a subdirectory you
will need to use extra periods to indicate the subdirectories, for example..1 <?php
2
3 $option = Config::get('ourconfig.sub.directory.size');
Sometimes it’s useful to retrieve the entire configuration array, to do this simply specify the
filename without the option. To retrieve the entire configuration array from our file we would
use.
1 <?php
2
3 $option = Config::get('ourconfig');

 

 
 
 

osdyui

Skills    Laravel

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)