bfg/request is a Laravel package for a slight addition to the laravel request.
It currently has 1 GitHub stars and 71 downloads on Packagist (latest version 0.0.3).
Install it with composer require bfg/request.
Discover more Laravel packages by bfg
or browse all Laravel packages to compare alternatives.
Last updated
A slight addition to the Laravel Request
complementing it using the transformation method.
Create the request as created, this package expands the Laravel command.
php artisan make:request UserRequest
You will be created the same file only inherited from Bfg\Request\FormRequest.
$request->transformation(array $validated);
Transformation callback for request validation result.
Transform and get a request validation result.
$request->save(Model|Relation|Builder|string $model);
Send to preserving kernel BlessModel.
$request->save(callable|bool $condition, Model|Relation|Builder|string $model);
Save any model with condition and request transform
php artisan uninstall bfg/request
php artisan install bfg/request