public function getDelete($id = '') { if ($id == '') { return Redirect::to($this->route)->with('msg_error', Lang::get('messages.companies_display_err')); } else { $company = Companies::find($id); $delete = Companies::destroy($id); if (!$delete) { return Redirect::to($this->route . '/trash')->with('msg_error', Lang::get('messages.companies_delete_err', array('title' => $company->title))); } else { return Redirect::to($this->route . '/trash')->with('msg_success', Lang::get('messages.companies_delete', array('title' => $company->title))); } } }