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