123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace App\Repositories\Eloquent;
- use Prettus\Repository\Eloquent\BaseRepository;
- use Prettus\Repository\Criteria\RequestCriteria;
- use App\Repositories\MemberBothRepository;
- use App\Models\MemberBoth;
- use App\Validators\MemberBothValidator;
- /**
- * Class MemberBothRepositoryEloquent.
- *
- * @package namespace App\Repositories\Eloquent;
- */
- class MemberBothRepositoryEloquent extends BaseRepository implements MemberBothRepository
- {
- /**
- * 查询检索的字段
- *
- * @return string
- */
- protected $fieldSearchable = [
- 'id' => '=',
- ];
- /**
- * Specify Model class name
- *
- * @return string
- */
- public function model()
- {
- return MemberBoth::class;
- }
- /**
- * Specify Validator class name
- *
- * @return mixed
- */
- public function validator()
- {
- return MemberBothValidator::class;
- }
- /**
- * Boot up the repository, pushing criteria
- */
- public function boot()
- {
- // $this->pushCriteria(app(RequestCriteria::class));
- }
- }
|