/** * Display a form for entry editing * @param integer $id * @return View */ public function edit($id) { // Get entry and prepare the form $entry = $this->repository->findInChannel($id, $this->channel->name); $form = new EntryForm($this->channel, $entry); return View::make('krustr::entries.edit')->withEntry($entry)->withForm($form); }