at the beginning i would like to as about best way for validate date before put to database but only when i want to edit post.
i have fields 'title' 'body' 'poster'
$this->validate($request->all(), [ 'title' => 'required|unique:blogs|max:190', 'description' => 'required', 'poster' => 'required|image|max:51200' ] );
that is simple validation when i add post
how should looks validation rules in update post ?