partial update create toggle active product and mutations

This commit is contained in:
2025-06-02 18:51:04 +07:00
parent 6bf8bc4965
commit a881779c4f
22 changed files with 512 additions and 21 deletions

View File

@@ -10,7 +10,7 @@ class Product extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['code','name','description','product_category_id'];
protected $fillable = ['code','name','description','unit','active','product_category_id'];
public function category(){
return $this->belongsTo(ProductCategory::class, 'product_category_id');