public function editpost($id) { $id = base64_decode($id); $post = Post::findorfail($id); return view('posts.editpost', compact('post')); }