PHP code example of xaamin / lumen-validation

1. Go to this page and download the library: Download xaamin/lumen-validation 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/ */

    

xaamin / lumen-validation example snippets


use Lumen\Validation\BaseRequest;

class CreateUserRequest extends BaseRequest
{
    protected function authorize()
    {
        return true;
    }

    protected function rules(): array
    {
        return  [
            'email' => ['