/** * Remove the specified instruments from storage (global UI implementation). * * @param int $id * @return Response */ public function delete($id) { //Delete the instrument $instrument = Instrument::find($id); $instrument->testTypes()->detach(); $instrument->delete(); // redirect return Redirect::route('instrument.index')->with('message', trans('messages.success-deleting-instrument')); }