海南旅游SAAS
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.

29 lines
580 B

  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\ModelTree;
  4. use Illuminate\Database\Eloquent\Factories\HasFactory;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. /**
  7. * 频道列表
  8. * Class Channel
  9. * @package App\Models
  10. */
  11. class Channel extends BaseModel
  12. {
  13. use HasFactory, SoftDeletes;
  14. use ModelTree;
  15. // 模型树需要的三个属性
  16. protected $parentColumn = 'pid';
  17. protected $orderColumn = 'sort';
  18. protected $titleColumn = 'name';
  19. public function __construct(array $attributes = [])
  20. {
  21. parent::__construct($attributes);
  22. $this->timestamps = false;
  23. }
  24. }