This repository was archived by the owner on Jan 29, 2020. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1818use  Reflex \Repository \Events \RepositoryEntityDeleted ;
1919use  Reflex \Repository \Events \RepositoryEntityUpdated ;
2020use  Reflex \Repository \Exceptions \RepositoryException ;
21- use  Reflex \Validator \Contracts \ValidatorInterface ;
22- use  Reflex \Validator \Exceptions \ValidatorException ;
21+ use  Prettus \Validator \Contracts \ValidatorInterface ;
22+ use  Prettus \Validator \Exceptions \ValidatorException ;
2323
2424/** 
2525 * Class BaseRepository 
@@ -129,7 +129,7 @@ public function presenter()
129129    }
130130
131131    /** 
132-      * Specify Validator class name of Reflex \Validator\Contracts\ValidatorInterface 
132+      * Specify Validator class name of Prettus \Validator\Contracts\ValidatorInterface 
133133     * 
134134     * @return null 
135135     * @throws Exception 
@@ -138,8 +138,8 @@ public function validator()
138138    {
139139
140140        if  (isset ($ this rules ) && !is_null ($ this rules ) && is_array ($ this rules ) && !empty ($ this rules )) {
141-             if  (class_exists ('Reflex \Validator\LaravelValidator )) {
142-                 $ validatorapp ('Reflex \Validator\LaravelValidator );
141+             if  (class_exists ('Prettus \Validator\LaravelValidator )) {
142+                 $ validatorapp ('Prettus \Validator\LaravelValidator );
143143                if  ($ validatorinstanceof  ValidatorInterface) {
144144                    $ validatorsetRules ($ this rules );
145145
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ $NAMESPACE$
55use Illuminate\Http\Request;
66
77use $APPNAME$Http\Requests;
8- use Reflex \Validator\Contracts\ValidatorInterface;
9- use Reflex \Validator\Exceptions\ValidatorException;
10- use $APPNAME$Http \Requests\$CLASS$CreateRequest;
11- use $APPNAME$Http \Requests\$CLASS$UpdateRequest;
8+ use Prettus \Validator\Contracts\ValidatorInterface;
9+ use Prettus \Validator\Exceptions\ValidatorException;
10+ use $APPNAME$Entities\$CLASS$ \Requests\$CLASS$CreateRequest;
11+ use $APPNAME$Entities\$CLASS$ \Requests\$CLASS$UpdateRequest;
1212$REPOSITORY$
1313$VALIDATOR$
1414
Original file line number Diff line number Diff line change 22
33$NAMESPACE$
44
5- use \Reflex \Validator\Contracts\ValidatorInterface;
6- use \Reflex \Validator\LaravelValidator;
5+ use \Prettus \Validator\Contracts\ValidatorInterface;
6+ use \Prettus \Validator\LaravelValidator;
77
88class $CLASS$Validator extends LaravelValidator {
99
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments