完整的這個(gè)表單代碼
https://github.com/CmderQ/laravel-learn
https://github.com/CmderQ/laravel-learn
2018-01-28
根據(jù)老師視頻,寫(xiě)得代碼!增刪改查都能正常運(yùn)行
https://github.com/CmderQ/laravel-learn
https://github.com/CmderQ/laravel-learn
Session::put不行的原因是沒(méi)有在上面加上 use Illuminate\Support\Facades\Session;
老師用的是phpstorm,比較智能會(huì)自動(dòng)添加use的
ps:各位趕緊去換個(gè)phpstorm吧.....不然這種事情會(huì)經(jīng)常發(fā)生的
老師用的是phpstorm,比較智能會(huì)自動(dòng)添加use的
ps:各位趕緊去換個(gè)phpstorm吧.....不然這種事情會(huì)經(jīng)常發(fā)生的
2018-01-16
/**
* 獲取當(dāng)前時(shí)間
*
* @return int
*/
public function freshTimestamp() {
return time();
}
/**
* 避免轉(zhuǎn)換時(shí)間戳為時(shí)間字符串
*
* @param DateTime|int $value
* @return DateTime|int
*/
public function fromDateTime($value)
{
return $value;
}
* 獲取當(dāng)前時(shí)間
*
* @return int
*/
public function freshTimestamp() {
return time();
}
/**
* 避免轉(zhuǎn)換時(shí)間戳為時(shí)間字符串
*
* @param DateTime|int $value
* @return DateTime|int
*/
public function fromDateTime($value)
{
return $value;
}
2018-01-14
update報(bào)錯(cuò)"Call to a member function format() on string"
2018-01-14
VS Code 安裝Laravel Extension Pack,使用時(shí)可以自動(dòng)引入Request.
2018-01-13
messageblade代碼
@if(\Illuminate\Support\Facades\Session::has('success'))
<div class="alert alert-success alert-dismissible" role="alert">
省略
<strong>成功!</strong>{{\Illuminate\Support\Facades\Session::get()}}
</div>@endif
@if(\Illuminate\Support\Facades\Session::has('success'))
<div class="alert alert-success alert-dismissible" role="alert">
省略
<strong>成功!</strong>{{\Illuminate\Support\Facades\Session::get()}}
</div>@endif