partial update create toggle active product and mutations
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user