laravel5.5版本:
http://laravelacademy.org/laravel-docs-5_5??
laravel所有命令:
https://cs.laravel-china.org???
composer安裝包列表:?
https://www.phpcomposer.com/??
php中驗(yàn)證短信登錄(用redis)
http://www.jb51.net/article/65488.htm??
qq互聯(lián)網(wǎng)址:
http://www.360doc.com/content/15/0917/00/25673652_499639845.shtml??
第三方微信登錄:
http://www.reibang.com/p/9be317865c9e
第三方扣扣登錄:
https://www.cnblogs.com/zzdylan/p/5922477.html
phpredis擴(kuò)展對(duì)數(shù)據(jù)的一些操作:
http://blog.csdn.net/qiumen/article/details/71075908
微信公眾號(hào)(laravel):
githup:
https://github.com/overtrue/laravel-wechat
https://www.cnblogs.com/zhuchenglin/p/6842840.html
詳細(xì)微信文檔網(wǎng)址:
https://www.easywechat.com/docs/master
laravel中生成二維碼:
http://laravelacademy.org/post/2605.html
laravel中庫的用法:
https://github.com/andersao/l5-repository
更新vendor文件時(shí)叽躯,如果報(bào)這個(gè)錯(cuò)誤如圖:
輸入命令:?composer?update?-vvv?--no-scripts
laravel操作數(shù)據(jù)庫:
http://laravelacademy.org/post/8060.html
數(shù)組取交集:數(shù)組的交集?array_intersect()
返回json數(shù)據(jù)狀態(tài)碼封裝方法:return?response()->json(["status"=>,?"data"=>"",?"message"=>""]);
將二維數(shù)組轉(zhuǎn)化為一維只取值:array_column
eg:$last_names?=array_column($a,?'last_name');print_r($last_names);
詳細(xì)文檔:
https://laravel-china.org/docs/laravel/5.5/queries#e07c86
5.5laravel開發(fā)文檔:
https://laravel-china.org/docs/laravel/5.5
strrchr()?函數(shù)查找字符串在另一個(gè)字符串中最后一次出現(xiàn)的位置财边,并返回從該位置到字符串結(jié)尾的所有字符。
正則表達(dá)式講解鏈接:
https://www.cnblogs.com/hellohell/p/5718319.html
注意事項(xiàng):?判斷或者校驗(yàn)應(yīng)該寫在前面点骑。
response()返回信息盡量用單引號(hào)酣难,雙引號(hào)會(huì)解析。
shuffle?:函數(shù)把數(shù)組中的元素按隨機(jī)順序重新排列黑滴。
array_slice:?函數(shù)在數(shù)組中根據(jù)條件取出一段值憨募,并返回。
一些sql學(xué)習(xí)網(wǎng)址:
http://www.w3school.com.cn/sql/
模型定義:
http://laravelacademy.org/post/1095.html
解析字段里面數(shù)據(jù):
在模型注入(解析數(shù)據(jù))
二維數(shù)組去重:
$a?=?[];
//????????foreach?($result?as?$v)?{
//????????????if?(!isset($a[$v['disease_id']]))?{
//????????????????$a[$v['disease_id']]?=?$v;
//????????????}
//????????}
//????????$a?=?array_values($a);
//????????return?$a;
命令查看log日志:
\Log::info(__METHOD__,[$result]);
sql語句文檔學(xué)習(xí):
http://www.w3school.com.cn/sql/sql_in.asp
建臨時(shí)表查詢SQL語句:CREATE?TEMPORARY?TABLE?`diag_3d_id_radio_index`
SELECT?DISTINCT?disease_id,disease_name,`type`?FROM?`diag_3d_id_radio`?c
php中解決跨域問題加header:header("Access-Control-Allow-Origin:?*");
http_build_query:?生成?URL-encode?之后的請(qǐng)求字符串袁辈。
一般的auth認(rèn)證都需要放在header頭請(qǐng)求的