/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Database/UniqueConstraintViolationException.php
46 строк
876 B
Luke Kuzmish
[13.x] Include columns and index in UniqueConstraintViolationException (#59299)
21 мар 2026, 14:38
Не верифицирован
21 мар 2026, 14:38
2d8e8f4
Код
Авторство
О чём код?
<?php namespace Illuminate\Database; class UniqueConstraintViolationException extends QueryException { /** * The unique index which prevented the query. * * @var string|null */ public ?string $index = null; /** * The columns which caused the violation. * * @var list<string> */ public array $columns = []; /** * Set the unique index which caused the violation. * * @param string|null $index * @return $this */ public function setIndex(?string $index): self { $this->index = $index; return $this; } /** * Set the columns that caused the violation. * * @param list<string> $columns * @return $this */ public function setColumns(array $columns): self { $this->columns = $columns; return $this; } }