public function update(Request $request, $id)
{
$this->validate($request, [
...
]);
Blog::find($id)->update($request->all());
return redirect()->route('blog.index')
->with('success','Blog updated successfully');
}
Call to a member function update() on null
var_dump($request)