user()?->hasPermission('schedule.export') === true; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'start_date' => 'required|date_format:Y-m-d', 'end_date' => 'required|date_format:Y-m-d', 'week' => 'required|string', 'year' => 'nullable|integer|min:2000|max:2100', ]; } }