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
23 lines
504 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Dcat\Admin\Traits\ModelTree;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Category extends Model
|
|
{
|
|
use ModelTree;
|
|
|
|
protected $table = 'lanzu_category';
|
|
protected $dateFormat = 'U';
|
|
|
|
// 父级ID字段名称,默认值为 parent_id
|
|
// protected $parentColumn = 'pid';
|
|
|
|
// 排序字段名称,默认值为 order
|
|
protected $orderColumn = 'sort';
|
|
|
|
// 标题字段名称,默认值为 title
|
|
// protected $titleColumn = 'name';
|
|
}
|