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
Post a Comment