class
Illuminate
/
Database
/
Eloquent
/
RelationNotFoundException
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
RelationNotFoundException
Extends
Properties
public
$model string
The name of the affected Eloquent model.
Default: null
public
$relation string
The name of the relation.
Default: null
Methods
public
static
make ( $model , $relation , $type ) : static
Create a new exception instance.
Parameters
- $model object
- $relation string
- $type string|null