http code : 302
通过php artisan serve命令的localhost:8000可以访问到http://localhost:8000/login
而在http://localhost/laravel/public/index.php/login访问404;(http://localhost/laravel/public/index.php正常访问)
看视频看看停停老是需要刷新(用户体验很差)
功能可以实现但是图片没有变化需要刷新是哪里出了问题?
数据库中的字段信息这个样子的2017-07-29 16:10:18 | 2017-07-29 16:10:18 | 2017-07-29 16:10:18 |
array:4 [▼
"_token" => "bq47HKXwagwBK0BexD0kKeKhacYWKdYBKkiTvsWh"
"title" => "45"
"content" => "34"
"published_at" => "2017-07-31"
]
附上
public function store(Request $request)
{
//接受post过来的数据
//存入数据库
//重定向
Article::create($request->all());
return redirect('/articles');
}