class
Illuminate
/
Database
/
LazyLoadingViolationException
You are viewing an older version of the documentation. For the latest, please visit master documentation.
LazyLoadingViolationException
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
__construct ( $model , $relation ) : static
Create a new exception instance.
Parameters
- $model object
- $relation string