链街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.

23 lines
504 B

  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\ModelTree;
  4. use Illuminate\Database\Eloquent\Model;
  5. class Category extends Model
  6. {
  7. use ModelTree;
  8. protected $table = 'lanzu_category';
  9. protected $dateFormat = 'U';
  10. // 父级ID字段名称,默认值为 parent_id
  11. // protected $parentColumn = 'pid';
  12. // 排序字段名称,默认值为 order
  13. protected $orderColumn = 'sort';
  14. // 标题字段名称,默认值为 title
  15. // protected $titleColumn = 'name';
  16. }