fuc-new/vendor/illuminate/database/ClassMorphViolationException.php
hellcat 1fe8673f62 1
2025-10-01 13:34:29 +08:00

30 lines
525 B
PHP
Executable File

<?php
namespace Illuminate\Database;
use RuntimeException;
class ClassMorphViolationException extends RuntimeException
{
/**
* The name of the affected Eloquent model.
*
* @var string
*/
public $model;
/**
* Create a new exception instance.
*
* @param object $model
*/
public function __construct($model)
{
$class = get_class($model);
parent::__construct("No morph map defined for model [{$class}].");
$this->model = $class;
}
}