getModel(); $post->fill($data); $post->save(); return $post; } public function update(Post $post, array $data) { $post->fill($data); $post->save(); return $post; } }