比如 我的域名為 explame.com, nginx 里網(wǎng)站目錄指向 public,nginx中默認文檔已設(shè)為index.html 在public目錄下有個 index.html 我想在直接訪問 http://explame.com 時,能顯示靜態(tài)index.html里的內(nèi)容,而不必再經(jīng)由webman路由 upstream webman { server 127.0.0.1:8788; } server {...
添加一個類似thinkphp的input方法 在app/functions.php里加上 function input($name, $default = null) { return request()->input($name, $default ); }...
我想到的有: 1、做個基類在其中判斷,然后需要用到的地方繼承; 2、論壇里提到的,在全局中間件里做控制器判斷,進行排除。 還有什么好辦法?還望大佬指導(dǎo)!...
問題描述 插件在第一次安裝時一切都是正常的,但是卸載composer包的時候會報錯,插件所產(chǎn)生的配置文件也不會被刪除干凈(有時會,有時不會,暫且認為不會),具體的操作步驟及報錯信息如下: composer remove webman/think-cache ./composer.json has been updated Using version ^1.0 for webman/think-cache ./...