fix : 카테고리 API
This commit is contained in:
@@ -23,6 +23,10 @@ class Category extends Model
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'deleted_by','deleted_at'
|
||||
];
|
||||
|
||||
// 계층
|
||||
public function parent() { return $this->belongsTo(self::class, 'parent_id'); }
|
||||
public function children() { return $this->hasMany(self::class, 'parent_id'); }
|
||||
|
||||
Reference in New Issue
Block a user