/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Validation/Rules/Exists.php
25 строк
476 B
Andrew Brown
explicitly declare `\Stringable` interface (#47697)
10 июл 2023, 17:48
Не верифицирован
10 июл 2023, 17:48
a3fc3f2
Код
Авторство
О чём код?
<?php namespace Illuminate\Validation\Rules; use Illuminate\Support\Traits\Conditionable; use Stringable; class Exists implements Stringable { use Conditionable, DatabaseRule; /** * Convert the rule to a validation string. * * @return string */ public function __toString() { return rtrim(sprintf('exists:%s,%s,%s', $this->table, $this->column, $this->formatWheres() ), ','); } }