You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom Pivot models are being included as standard models
(likely because they ultimately extend Model::class)
Relations that actually use these Custom model classes aren't noted as such
The above is an example of
public function vessels(): BelongsToMany
{
return $this->belongsToMany(Vessel::class, 'users_vessels')->using(UserVesselPivot::class);
}
I think if a class is of Pivot::class it can be ignored for layout. But as the Pivot class has its own fillable etc for use with withPivot() it could also be creatable via this package when defining relations - maybe an "Add Custom Pivot Class" option then provide the same model creation interface that already exists.
The text was updated successfully, but these errors were encountered:
SlyDave
changed the title
Support custom pivot models
Support custom pivot classes
Mar 9, 2020
SlyDave
changed the title
Support custom pivot classes
Support custom pivot models
Mar 9, 2020
Custom Pivot models are being included as standard models
(likely because they ultimately extend Model::class)
Relations that actually use these Custom model classes aren't noted as such
The above is an example of
I think if a class is of Pivot::class it can be ignored for layout. But as the Pivot class has its own fillable etc for use with withPivot() it could also be creatable via this package when defining relations - maybe an "Add Custom Pivot Class" option then provide the same model creation interface that already exists.
The text was updated successfully, but these errors were encountered: