i need to run custom rule but this rule need some form inputs as parameters
i need to run custom rule but this rule need some form input as parameters how can i get email and mobile_number value
TextInput::make('password')->password()->rules([ User::getPasswordValidationRules() , new passwordExtraValidation(request()->email , request()->mobile_number)])
TextInput::make('password')->password()->rules([ User::getPasswordValidationRules() , new passwordExtraValidation(request()->email , request()->mobile_number)])
Solution:Jump to solution
using
$get
https://filamentphp.com/docs/2.x/forms/validation#custom-rules
```php
TextInput::make('field')->rules([...Filament
Validation - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
2 Replies
Solution
Filament
Validation - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
thank you π