fix : 모델 및 자재관리 수정
This commit is contained in:
@@ -16,7 +16,7 @@ class Product extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id','code','name','category_id',
|
||||
'product_type', // 라벨/분류용
|
||||
'product_type', // 라벨/분류용
|
||||
'attributes','description','is_active',
|
||||
'is_sellable','is_purchasable','is_producible',
|
||||
'created_by','updated_by'
|
||||
@@ -30,6 +30,10 @@ class Product extends Model
|
||||
'is_producible' => 'boolean',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'deleted_at',
|
||||
];
|
||||
|
||||
// 분류
|
||||
public function category() { return $this->belongsTo(Category::class, 'category_id'); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user