PHP code example of bfg / request

1. Go to this page and download the library: Download bfg/request library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bfg / request example snippets


$request->transformation(array $validated);

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

$request->save(callable|bool $condition, Model|Relation|Builder|string $model);
bash
php artisan make:request UserRequest
bash
php artisan uninstall bfg/request
bash
php artisan install bfg/request