mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 17:31:05 +03:30
update item & package & label & cycle
This commit is contained in:
+2
-2
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user