1.Laravel中配置config文件方法:
在Config文件夹下新建web.php,输入下面的代码保存:
<?php
return [
'url' => 'https://www.02405.com',
];
2.在Laravel控制器中使用web.php中的配置信息:
config('web.url');//输出 https://www.02405.com
3.在Laravel模板中使用web.php中的配置信息:
{{config('web.url')}} //输出 https://www.02405.com
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/1962
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_7049.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57