Soyhuce/l5-repository

View on GitHub
src/Prettus/Repository/Generators/Stubs/validator/validator.stub

Summary

Maintainability
Test Coverage
<?php

$NAMESPACE$

use \Prettus\Validator\Contracts\ValidatorInterface;
use \Prettus\Validator\LaravelValidator;

class $CLASS$Validator extends LaravelValidator
{

    protected $rules = [
        ValidatorInterface::RULE_CREATE => $RULES$,
        ValidatorInterface::RULE_UPDATE => $RULES$,
   ];
}