<NME> eloquent.stub
<BEF> <?php

$NAMESPACE$

use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use $REPOSITORY$
use $MODEL$;

/**
 * Class $CLASS$RepositoryEloquent
 *
 * @package $NAMESPACE$
 */
class $CLASS$RepositoryEloquent extends BaseRepository implements $CLASS$Repository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
        return $CLASS$::class;
    }

    /**
     * Boot up the repository, pushing criteria
     */
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }
    
}

<MSG> Attach Validator to the repository class directly from generator command

Signed-off-by: Madalin Pasarel <64d45ef6df1c43163bbeba3d7830276a4373e4c9@gmail.com>

<DFF> @@ -6,6 +6,7 @@ use Prettus\Repository\Eloquent\BaseRepository;
 use Prettus\Repository\Criteria\RequestCriteria;
 use $REPOSITORY$
 use $MODEL$;
+$USE_VALIDATOR$;
 
 /**
  * Class $CLASS$RepositoryEloquent
@@ -23,6 +24,8 @@ class $CLASS$RepositoryEloquent extends BaseRepository implements $CLASS$Reposit
         return $CLASS$::class;
     }
 
+    $VALIDATOR$
+
     /**
      * Boot up the repository, pushing criteria
      */

Attach Validator to the repository class directly from generator command