Property | Type | Description | |
---|---|---|---|
$container | Illuminate\Container\Container | Container instance used to resolve classes. | |
$sanitizers | array | Array of registered sanitizers. |
Method | Description | |
---|---|---|
__construct ( mixed $container = null ) | Allow a container instance to be set via constructor. | |
executeSanitizer ( mixed $sanitizer, $parameters ) : mixed | Execute a sanitizer using the appropriate method. | |
register ( string $name, mixed $callback ) : void | Register a new sanitization method. | |
sanitize ( array $rules, array &$data ) : array | Sanitize a dataset using rules. |
Method | Description | |
---|---|---|
getSanitizer ( string $key ) : Callable | Retrieve a sanitizer by key. | |
resolveCallback ( string $callback ) : array | Resolve a callback from a class and method pair. | |
runGlobalSanitizers ( array &$rules, array &$data ) : void | Apply global sanitizer rules. | |
sanitizeField ( array &$data, string $field, mixed $ruleset ) | Execute sanitization over a specific field. |
public __construct ( mixed $container = null ) | ||
$container | mixed |
public executeSanitizer ( mixed $sanitizer, $parameters ) : mixed | ||
$sanitizer | mixed | |
return | mixed |
protected getSanitizer ( string $key ) : Callable | ||
$key | string | |
return | Callable |
protected resolveCallback ( string $callback ) : array | ||
$callback | string | |
return | array |
protected Container,Illuminate\Container $container | ||
return | Illuminate\Container\Container |
protected array $sanitizers | ||
return | array |