class RelationNotFoundException extends RuntimeException (View source)

Properties

string $model

The name of the affected Eloquent model.

string $relation

The name of the relation.

Methods

make(object $model, string $relation, string|null $type = null)

Create a new exception instance.

Details

static RelationNotFoundException make(object $model, string $relation, string|null $type = null)

Create a new exception instance.

Parameters

object $model
string $relation
string|null $type

Return Value

RelationNotFoundException