protected function getValidationRules(array $fields)
    {
        $rules = [];

        foreach($fields as $field => $data){

            if($data['validate']) $rules[$field] = $data['validate'];

        }

        return $rules;
    }
protected function getValidationRules(array $fields)
    {
        $rules = [];

        foreach($fields as $field => $data){

            if($data['validate']) $rules[$field] = $data['validate'];

        }

        return $rules;
    }
protected function getValidationRules ( array $ fields ) { $ rules = [ ] ; foreach ( $ fields as $ field => $ data ) { if ( $ data [ 'validate' ] ) $ rules [ $ field ] = $ data [ 'validate' ] ; } return $ rules ; }
Get the validation rules for the request.

@return \Illuminate\Validation\Validator
Get the validation rules for the request .