public function destroy($id) { try { MasterProof::destroy($id); } catch (QueryException $ex) { return Redirect::back()->with('alert-warning', 'Proof is in Use!'); } return Redirect::route($this->route . 'index')->with('alert-success', 'Successfully Deleted!'); }