user()->can('destroy', TimeInterval::find(request('id'))); } protected function failedAuthorization(): void { throw new IntervalAlreadyDeletedException; } public function _rules(): array { return [ 'id' => 'required|int|exists:time_intervals,id', ]; } }