/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { try { Subject::destroy($id); } catch (QueryException $ex) { return Redirect::back()->with('alert-warning', 'Subject/Trade is in Use!'); } return Redirect::route($this->route . 'index')->with('alert-success', 'Successfully Deleted!'); }