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:
<?php $value = config('app.timezone');

$value = config('app.timezone', $default);
<?php         );




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



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




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

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

                'as' => 'imagecache'

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