public function get_delete($id = NULL) { $friend = Blacklist::find($id); if (empty($friend)) { return View::make('msg.error')->with('error', 'This host doesn\'t exist.'); } $friend->delete(); return Redirect::to('/admin/blacklist/overview'); }
function blacklist() { if (isset($this->blacklist_record)) { return $this->blacklist_record; } if ($this->blacklist_id) { $this->blacklist_record = Blacklist::find($this->blacklist_id); return $this->blacklist_record; } else { return null; } }