class PostController extends Controller { public function update(Post $post,
class PostController extends Controller { public function update($post_id, $post = Post::findOrFail($post_id);