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
+2 -2
View File
@@ -11,9 +11,9 @@ class Cycle extends Model
{
return $this->belongsTo('App\User');
}
public function packs()
public function labels()
{
return $this->belongsToMany('App\Pack', 'cycle_pack');
return $this->belongsToMany('App\Label', 'cycle_label')->withPivot('count');
}
}