|
|
|
@ -16,6 +16,14 @@ class Category extends BaseModel |
|
|
|
protected $orderColumn = 'sort'; |
|
|
|
protected $titleColumn = 'name'; |
|
|
|
|
|
|
|
protected $fillable = [ |
|
|
|
'agent_id', |
|
|
|
'name', |
|
|
|
'pid', |
|
|
|
'sort', |
|
|
|
'template', |
|
|
|
]; |
|
|
|
|
|
|
|
public function __construct(array $attributes = []) |
|
|
|
{ |
|
|
|
parent::__construct($attributes); |
|
|
|
|