public function postEdit(Post $post) { $post->subject = $this->request->get('subject'); $post->permalink = $this->request->get('permalink'); $post->content = $this->request->get('content'); $post->featured_image = $this->request->get('featured_image'); $post->gallery_id = $this->request->get('gallery_id'); $post->save(); $cats = explode(',', $this->request->get("post_cats")); $post->cats()->sync($cats); return $this->redirector->route('post.edit', array('id' => $post->id)); }