configuration

How to add custom config file to app/config in Laravel 5?

为君一笑 提交于 2020-11-30 04:39:03
问题 I want to add custom_config.php to app/config directory of my Laravel 5 project, but can't find any article explaining this process. How is this done? 回答1: You can easily add a new file to the config folder. This file should return configuration values. Check other config files for reference. Say constants.php is like so <?php return array( 'pagination' => array( 'items_per_page' => 10 ), ); You can now access this config file from anywhere by either using the Config Facade or the config()

How to add custom config file to app/config in Laravel 5?

只愿长相守 提交于 2020-11-30 04:35:35
问题 I want to add custom_config.php to app/config directory of my Laravel 5 project, but can't find any article explaining this process. How is this done? 回答1: You can easily add a new file to the config folder. This file should return configuration values. Check other config files for reference. Say constants.php is like so <?php return array( 'pagination' => array( 'items_per_page' => 10 ), ); You can now access this config file from anywhere by either using the Config Facade or the config()

How to add custom config file to app/config in Laravel 5?

夙愿已清 提交于 2020-11-30 04:34:31
问题 I want to add custom_config.php to app/config directory of my Laravel 5 project, but can't find any article explaining this process. How is this done? 回答1: You can easily add a new file to the config folder. This file should return configuration values. Check other config files for reference. Say constants.php is like so <?php return array( 'pagination' => array( 'items_per_page' => 10 ), ); You can now access this config file from anywhere by either using the Config Facade or the config()

How to add custom config file to app/config in Laravel 5?

时间秒杀一切 提交于 2020-11-30 04:34:08
问题 I want to add custom_config.php to app/config directory of my Laravel 5 project, but can't find any article explaining this process. How is this done? 回答1: You can easily add a new file to the config folder. This file should return configuration values. Check other config files for reference. Say constants.php is like so <?php return array( 'pagination' => array( 'items_per_page' => 10 ), ); You can now access this config file from anywhere by either using the Config Facade or the config()