The config function gets the value of a configuration variable. The configuration values may be accessed using "dot" syntax, which includes the name of the file and the option you wish to access. A default value may be specified and is returned if the configuration option does not exist:
$value config('app.timezone');

$value config('app.timezone'$default);
        );




        if (
is_string(config('imagecache.route'))) {



            
$filename_pattern '[ \w\\.\\/\\-\\@\(\)\=]+';
            $filename_pattern '[ \w\\.\\/\\-\\@\(\)\=]+';




            
$app['router']->get(config('imagecache.route').'/{template}/{filename}', [

                
'uses' => 'Intervention\Image\ImageCacheController@getResponse',

                
'as' => 'imagecache'

            
])->where(['filename' => $filename_pattern]);