最贊回答 / 芭菲雨
pluck只能獲取一個(gè)字段,可以指定列表中反回的鍵值對(duì)應(yīng)數(shù)據(jù)表中的字段。select可以選擇多個(gè)字段內(nèi)容返回
2018-07-27
已采納回答 / qq_虛懷若谷_6
lists()已經(jīng)被pluck()取代,如果要取字段做下標(biāo),直接使用 pluck()就可以.一樓已經(jīng)貼出來代碼了
2018-07-27
最新回答 / 浮塵www
在nginx里加上如下rewrite代碼:location / {? ? ? ? try_files $uri $uri/ /index.php?$query_string;? ? }? ? if (!-d $request_filename)? ? {? ? ? ? rewrite ^/(.+)/$ /$1 permanent;? ? }? ? # 去除index action? ? if ($request_uri ~* index/?$)? ? {? ? ? ? rewrite ^/(.*)/ind...
2018-07-21
最贊回答 / 慕UI4579141
已解決 可以參考這兩個(gè)https://blog.csdn.net/weixin_33692284/article/details/91957482https://blog.csdn.net/haibo0668/article/details/105229541
2018-07-19
http://localhost/laravel/public/basic1之所以服務(wù)器訪問不到是因?yàn)閕ndex.php默然不顯示,需要http://localhost/laravel/public/index.php
/basic1
/basic1