2015-06-04 45 views

回答

0

內組件自己的config目錄下,你必須有一個config.php文件是這樣的:

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

然後,讀取值:

$this->app['config']->get('%FACADE_NAME%::%CONFIG_VAR%'); 

例:

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