public function edit($id) { $this->layout->title = 'Edit ' . Str::title($this->type); $this->layout->content = View::make($this->link_type . '.' . $this->current_theme . '.posts.create_edit')->with('post', Post::findOrFail($id)); }