Illuminate: ready. (critical)

- DB에서 illuminate를 가져올 수 있도록 설정
- 업그레이듵 불가, RootDB, DB를 직접 수정해야함
This commit is contained in:
2021-09-21 03:06:42 +09:00
parent 40a20a55d3
commit b4605958ad
1704 changed files with 147037 additions and 20 deletions
@@ -0,0 +1,39 @@
<?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 static
*/
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;
}
}