class PendingHasThroughRelationship (View source)

Properties

protected TDeclaringModel $rootModel

The root model that the relationship exists on.

protected TDeclaringModel>|TDeclaringModel> $localRelationship

The local relationship.

Methods

__construct(TDeclaringModel $rootModel, TDeclaringModel>|TDeclaringModel> $localRelationship)

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

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(TDeclaringModel $rootModel, TDeclaringModel>|TDeclaringModel> $localRelationship)

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

Parameters

TDeclaringModel $rootModel
TDeclaringModel>|TDeclaringModel> $localRelationship

has($callback)

Define the distant relationship that this model has.

Parameters

$callback

mixed __call(string $method, array $parameters)

Handle dynamic method calls into the model.

Parameters

string $method
array $parameters

Return Value

mixed