dd($request->all());
array:4 [▼
"_token" => "bq47HKXwagwBK0BexD0kKeKhacYWKdYBKkiTvsWh"
"title" => "45"
"content" => "34"
"published_at" => "2017-07-31"
]
存入数据库的published_at的数据和created_at的数据一样
附上
public function store(Request $request)
{
//接受post过来的数据
//存入数据库
//重定向
Article::create($request->all());
return redirect('/articles');
}