/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (!($tag = $this->tag->destroy($id))) { // 500 Error } $this->setFlash($tag->name, 'delete', 'danger'); return Redirect::route('tag'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $this->data['site'] = $this->site->get($id); $this->data['tags'] = $this->tag->lists(); return view('RedpotionAdmin::sites.edit', $this->data); }