Download the PHP package adamthehutt/laravel-sanitized-requests without Composer
On this page you can find all versions of the php package adamthehutt/laravel-sanitized-requests. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adamthehutt/laravel-sanitized-requests
More information about adamthehutt/laravel-sanitized-requests
Files in adamthehutt/laravel-sanitized-requests
Download adamthehutt/laravel-sanitized-requests
More information about adamthehutt/laravel-sanitized-requests
Files in adamthehutt/laravel-sanitized-requests
Vendor adamthehutt
Package laravel-sanitized-requests
Short Description Sanitize request parameters before validation
License MIT
Package laravel-sanitized-requests
Short Description Sanitize request parameters before validation
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-sanitized-requests
Laravel Sanitized Requests
Sanitize request input before passing to validation.
Installation
Usage
Create a Request class and use the trait. Then implement the method to clean up user input before it is validated.
Sanitizers
The following sanitize methods are currently supported:
- castToBool($key) - Casts the string input value to a boolean
- castToInt($key) - Casts the string input value to an integer
- castToFloat($key) - Casts the string input value to a float
- castToString($key) - Casts the input value to a string
- forgetIfEmpty($key) - Removes from input both empty strings and arrays with only empty values
- map($key, $callable) - Applies an arbitrary callback to the input value(s)
- trimWhitespace($key) - Trims whitespace from a string input value
All versions of laravel-sanitized-requests with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
illuminate/support Version ^5.8 | ^6.0 | ^7.0 | ^8.0
illuminate/database Version ^5.8 | ^6.0 | ^7.0 | ^8.0
illuminate/support Version ^5.8 | ^6.0 | ^7.0 | ^8.0
illuminate/database Version ^5.8 | ^6.0 | ^7.0 | ^8.0
The package adamthehutt/laravel-sanitized-requests contains the following files
Loading the files please wait ....