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?