laravel 方法摘要

2021-09-21 17:59:27 字數 682 閱讀 1967

面試:你懂什麼是分布式系統嗎?redis分布式鎖都不會?>>>

$this->comment();  //輸出注釋

$this->info();       //輸出資訊

return collection::make([

'when there is no desire, all things are at peace. - laozi',

'simplicity is the ultimate sophistication. - leonardo da vinci',

'smile, breathe, and go slowly. - thich nhat hanh',

'simplicity is an acquired taste. - katharine gerould',

'well begun is half done. - aristotle',

'he who is contented is rich. - laozi',

])->random(); //返回建立的這個靜態陣列中的隨機乙個元素

//獲取訪問的方法名稱

$request->route()->getname();

//獲取訪問的方法別名

$request->route()->getaction();

java math類方法摘要

math類包含基本的數字操作,如指數 對數 平方根和三角函式。1 sqrt 返回正確捨入的double值的正平方根。特殊情況是 2 ceil 是不小於他的最小整數。特殊情況是 3 floor 返回不大於他的最大整數。特殊情況是 4 rint 返回其值最接近引數並且是整數的double值。如果兩個整數...

關於Laravel的多表查詢方法

之前寫了乙個遇到了多表查詢的問題,現在就來寫一下 data db table stu searches 將兩張表拼接起來 join stu msgs function join select stu searches.id stu searches.stu id stu searches.usern...

laravel各種路徑的獲取方法

若route中有route get home test homecontroller index name test 檢視中的href跳轉 一 區別 最方便,但路由改變時就又要修改了 二 區別 可直接命名使用,不因uri改變而改變,我喜歡用 注 用route需要在route中 name 三 區別 直...