当前位置:网站首页>Usage of config in laravel
Usage of config in laravel
2022-07-07 16:21:00 【Full stack programmer webmaster】
Laravel
Of config
Generally store configuration information , Can pass config('key')
Method to get the specified data .
The setting value can be set through 「 spot 」 Syntactic reading , It contains the file name to access and the option name .
Now I want to read \config\app.
PHP
Of documents url
, The data in the file is :
'url' => 'http://localhost',
Access method :
config('app.url')
If you can't find it app.url
, The second parameter will be returned by default .
config('app.url', 'default_val')
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/113175.html Link to the original text :https://javaforall.cn
边栏推荐
- 星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
- 模仿企业微信会议室选择
- Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
- How to query the data of a certain day, a certain month, and a certain year in MySQL
- 分步式監控平臺zabbix
- Statistical learning method -- perceptron
- 一个普通人除了去工厂上班赚钱,还能干什么工作?
- L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
- Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
- How does laravel run composer dump autoload without emptying the classmap mapping relationship?
猜你喜欢
Plate - forme de surveillance par étapes zabbix
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
深度之眼(六)——矩阵的逆(附:logistic模型一些想法)
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
企业级日志分析系统ELK
Continuous creation depends on it!
Odoo集成Plausible埋码监控平台
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!
Leetcode-231-2的幂
随机推荐
Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
PHP实现微信小程序人脸识别刷脸登录功能
Leetcode-136- number that appears only once (solve with XOR)
Odoo集成Plausible埋码监控平台
统计学习方法——感知机
Xcode Revoke certificate
Numpy --- basic learning notes
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
10 schemes to ensure interface data security
How to query the data of a certain day, a certain month, and a certain year in MySQL
Numpy -- data cleaning
Dotween -- ease function
Talk about the cloud deployment of local projects created by SAP IRPA studio
121. The best time to buy and sell stocks
Unity drawing plug-in = = [support the update of the original atlas]
Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
Markdown formula editing tutorial
iptables只允许指定ip地址访问指定端口