Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
:
LazyLoadingViolationException-20250317085810.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Illuminate\Database; use RuntimeException; class LazyLoadingViolationException extends RuntimeException { /** * The name of the affected Eloquent model. * * @var string */ public $model; /** * The name of the relation. * * @var string */ public $relation; /** * Create a new exception instance. * * @param object $model * @param string $relation * @return void */ public function __construct($model, $relation) { $class = get_class($model); parent::__construct("Attempted to lazy load [{$relation}] on model [{$class}] but lazy loading is disabled."); $this->model = $class; $this->relation = $relation; } }