链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
443 B

5 years ago
  1. <?php
  2. namespace App\Admin\Repositories;
  3. use App\Models\ImsCjdcMarket as Model;
  4. use Dcat\Admin\Repositories\EloquentRepository;
  5. class ImsCjdcMarket extends EloquentRepository
  6. {
  7. /**
  8. * Model.
  9. *
  10. * @var string
  11. */
  12. protected $eloquentClass = Model::class;
  13. // 通过这个方法可以指定查询的字段,默认"*"
  14. public function getGridColumns()
  15. {
  16. return [$this->getKeyName(), 'name'];
  17. }
  18. }