class GetModelRelationship

The GetModelRelationship event is called to retrieve Relation object for a model. Listeners should return an Eloquent Relation object.

Properties

AbstractModel $model
string $relationship

Methods

__construct(AbstractModel $model, string $relationship)

No description

bool
isRelationship(string $model, string $relationship)

No description

Details

__construct(AbstractModel $model, string $relationship)

Parameters

AbstractModel $model
string $relationship

bool isRelationship(string $model, string $relationship)

Parameters

string $model
string $relationship

Return Value

bool