Password validation not working

Hi,

I have the following validation in my component

use Illuminate\Validation\Rules\Password;

    protected $rules = [
        'password' => 'nullable|'.Password::min(8)->letters()->mixedCase()->symbols(),
        'password_confirmation' => 'nullable|same:password',
    ];

Password::min(8)->letters()->mixedCase()->symbols() does not work.
Livewire returns

Symfony\Component\ErrorHandler\Error\FatalError
Constant expression contains invalid operations

Are you using the latest version of Livewire:
Yes

Can anyone help?

Use array instead of string pipe for your rules.
That’s

['required', Password::min(8)]

Also, why is password nullable?