check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'todo_id' => 'required|exists:todos,id', 'pomo_start' => 'required|date_format:Y-m-d\TH:i', 'pomo_end' => 'required|date_format:Y-m-d\TH:i|after:pomo_start', 'notes' => 'nullable|string', ]; } public function messages() { return [ 'todo_id.required' => 'Please select a todo.', ]; } }