class PendingHasThroughRelationship (View source)

Properties

protected TDeclaringModel $rootModel

The root model that the relationship exists on.

protected TLocalRelationship $localRelationship

The local relationship.

Methods

__construct(TDeclaringModel $rootModel, TLocalRelationship $localRelationship)

Create a pending has-many-through or has-one-through relationship.

TDeclaringModel>|TDeclaringModel>)))
has(string|TIntermediateModel>|TIntermediateModel>|TIntermediateModel> $callback)

Define the distant relationship that this model has.

mixed
__call(string $method, array $parameters)

Handle dynamic method calls into the model.

Details

__construct(TDeclaringModel $rootModel, TLocalRelationship $localRelationship)

Create a pending has-many-through or has-one-through relationship.

Parameters

TDeclaringModel $rootModel
TLocalRelationship $localRelationship

TDeclaringModel>|TDeclaringModel>))) has(string|TIntermediateModel>|TIntermediateModel>|TIntermediateModel> $callback)

Define the distant relationship that this model has.

Parameters

string|TIntermediateModel>|TIntermediateModel>|TIntermediateModel> $callback

Return Value

TDeclaringModel>|TDeclaringModel>)))

mixed __call(string $method, array $parameters)

Handle dynamic method calls into the model.

Parameters

string $method
array $parameters

Return Value

mixed

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.