DatabasePresenceVerifierInterface
интерфейс DatabasePresenceVerifierInterface реализует PresenceVerifierInterface (Просмотреть исходный код)
Методы
| int | getCount(string $collection, string $column, string $value, int|null $excludeId = null, string|null $idColumn = null, array $extra = [])
Подсчитать количество объектов в коллекции, имеющих заданное значение. | из PresenceVerifierInterface |
| int | getMultiCount(string $collection, string $column, array $values, array $extra = [])
Подсчитать количество объектов в коллекции с заданными значениями. | из PresenceVerifierInterface |
| void | setConnection(string $connection)
Установить используемое соединение. |
Подробности
int getCount(string $collection, string $column, string $value, int|null $excludeId = null, string|null $idColumn = null, array $extra = [])
Подсчитать количество объектов в коллекции, имеющих заданное значение.
int getMultiCount(string $collection, string $column, array $values, array $extra = [])
Подсчитать количество объектов в коллекции с заданными значениями.
void setConnection(string $connection)
Установить используемое соединение.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Validation/DatabasePresenceVerifierInterface.html