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