/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Database/LazyLoadingViolationException.php
38 строк
749 B
Andrew Brown
[12.x] remove `@return` docblocks on constructors (#55076)
19 мар 2025, 23:10
Не верифицирован
19 мар 2025, 23:10
8f0e00b
Код
Авторство
О чём код?
<?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 */ 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; } }