mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 13:41:06 +03:30
update item & package & label & cycle
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ class Item extends Model
|
||||
public $fillable = ['name', 'size', 'unique_id', 'specific', 'note', 'user_id'];
|
||||
public function packages()
|
||||
{
|
||||
return $this->belongsToMany('App\Package', 'item_package');
|
||||
return $this->belongsToMany('App\Package', 'item_package')->withPivot('count');
|
||||
}
|
||||
public function user()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user