PHP code example of bachilli / laravel-request-rules

1. Go to this page and download the library: Download bachilli/laravel-request-rules 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/ */

    

bachilli / laravel-request-rules example snippets

 php
public function rules()
    {
        return RequestRule::resolveRules(
            [
            'name' => 'quired|array')->only(['dimensions'])->get(),
                RequestRule::merge(ProductEntityFormRequest::class, 'products.*')->except(['price'])->get(),
            ]);
    }