public
|
has<TRelatedModel is Model>(
string|(callable(TIntermediateModel): (HasOne<TRelatedModel, TIntermediateModel>|HasMany<TRelatedModel, TIntermediateModel>|MorphOneOrMany<TRelatedModel, TIntermediateModel>)) $callback,
): ($callback is string ? HasManyThrough<Model, TIntermediateModel, TDeclaringModel>|HasOneThrough<Model, TIntermediateModel, TDeclaringModel> : (TLocalRelationship is HasMany<TIntermediateModel, TDeclaringModel> ? HasManyThrough<TRelatedModel, TIntermediateModel, TDeclaringModel> : ($callback is callable(TIntermediateModel): HasMany<TRelatedModel, TIntermediateModel> ? HasManyThrough<TRelatedModel, TIntermediateModel, TDeclaringModel> : HasOneThrough<TRelatedModel, TIntermediateModel, TDeclaringModel>)))
Define the distant relationship that this model has.
Define the distant relationship that this model has.
|
#
|