update item & package & label & cycle

This commit is contained in:
Fayyazi
2019-10-30 14:19:47 +03:30
parent dbd0ddc1d4
commit da3dd22ec5
19 changed files with 292 additions and 109 deletions
+1 -1
View File
@@ -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()
{