PendingHasThroughRelationship
class PendingHasThroughRelationship
Properties
| protected TDeclaringModel | $rootModel | The root model that the relationship exists on. |
|
| protected TLocalRelationship | $localRelationship | The local relationship. |
Methods
__construct(Model $rootModel, HasOneOrMany $localRelationship)
Create a pending has-many-through or has-one-through relationship.
mixed
has(callable|string $callback)
Define the distant relationship that this model has.
mixed
__call(string $method, array $parameters)
Handle dynamic method calls into the model.
Details
at line 41
__construct(Model $rootModel, HasOneOrMany $localRelationship)
Create a pending has-many-through or has-one-through relationship.
at line 67
mixed
has(callable|string $callback)
Define the distant relationship that this model has.
at line 105
mixed
__call(string $method, array $parameters)
Handle dynamic method calls into the model.