On this page
PendingHasThroughRelationship
class PendingHasThroughRelationship (View source)
Properties
protected Model | $rootModel | The root model that the relationship exists on. |
|
protected HasMany|HasOne | $localRelationship | The local relationship. |
Methods
__construct(Model $rootModel, HasMany|HasOne $localRelationship) Create a pending has-many-through or has-one-through relationship. |
||
HasManyThrough|HasOneThrough | has($callback) Define the distant relationship that this model has. |
|
mixed | __call(string $method, array $parameters) Handle dynamic method calls into the model. |
Details
__construct(Model $rootModel, HasMany|HasOne $localRelationship)
Create a pending has-many-through or has-one-through relationship.
HasManyThrough|HasOneThrough has($callback)
Define the distant relationship that this model has.
mixed __call(string $method, array $parameters)
Handle dynamic method calls into the model.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/PendingHasThroughRelationship.html