> */ public function rules(): array { return [ 'instruction' => ['required', 'string', 'max:1000'], ]; } protected function prepareForValidation(): void { if ($this->has('instruction')) { $this->merge([ 'instruction' => trim((string) $this->input('instruction')), ]); } } }