class Validator implements ExtenderInterface

Methods

__construct(string $validatorClass)

No description

configure(callable|class-string $callback)

Configure the validator. This is often used to adjust validation rules, but can be used to make other changes to the validator as well.

extend(Container $container, Extension $extension = null)

No description

Details

__construct(string $validatorClass)

Parameters

string $validatorClass

Validator configure(callable|class-string $callback)

Configure the validator. This is often used to adjust validation rules, but can be used to make other changes to the validator as well.

Parameters

callable|class-string $callback The callback can be a closure or invokable class, and should accept: - \Flarum\Foundation\AbstractValidator $flarumValidator: The Flarum validator wrapper - \Illuminate\Validation\Validator $validator: The Laravel validator instance The callback should return void.

Return Value

Validator

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension