/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(DataValue $dataValue) { //delete itself $dataValue->delete(); Cache::flush(); return redirect()->route('variables.show', $dataValue->fk_var_id)->with('message', 'Value deleted.'); }