LaravelPackages.net
Acme Inc.
Toggle sidebar
bfg/request

A slight addition to the Laravel Request

71
1
0.0.3
About bfg/request

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

Extension request

A slight addition to the Laravel Request complementing it using the transformation method.

Make request

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.

transformation

$request->transformation(array $validated);

Transformation callback for request validation result.

transform

Transform and get a request validation result.

save

$request->save(Model|Relation|Builder|string $model);

Send to preserving kernel BlessModel.

saveIf

$request->save(callable|bool $condition, Model|Relation|Builder|string $model);

Save any model with condition and request transform

Deactivate

php artisan uninstall bfg/request

Activate

php artisan install bfg/request

Star History Chart