|string> */ public function rules(): array { return [ ...$this->profileRules($this->user()->id), 'avatar' => ['nullable', 'image', 'mimes:jpg,jpeg,png,webp', 'max:2048'], ]; } }