php - Add config file in workbench package for Laravel 4.2 -


how 1 make use of config file when making l4.2 packages? kind can customized user when running php artisan view:publish.

inside component own config directory, must have config.php file this:

<?php return ["foo" => "bar"]; 

then, reading value:

$this->app['config']->get('%facade_name%::%config_var%'); 

ex:

$this->app['config']->get('component::foo'); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -