|string> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'image' => [ 'nullable', 'image', 'mimes:jpg,png,jpeg,webp,gif', 'max:8192' ], 'email' => [ 'required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id), ], ]; } }