PresenceVerifierInterface (Validation)

PresenceVerifierInterface

interface PresenceVerifierInterface (View source)

Methods

int getCount(string $collection, string $column, string $value, int $excludeId = null, string $idColumn = null, array $extra = array())

Count the number of objects in a collection having the given value.

int getMultiCount(string $collection, string $column, array $values, array $extra = array())

Count the number of objects in a collection with the given values.

Details

int getCount(string $collection, string $column, string $value, int $excludeId = null, string $idColumn = null, array $extra = array())

Count the number of objects in a collection having the given value.

Parameters

string $collection
string $column
string $value
int $excludeId
string $idColumn
array $extra

Return Value

int

int getMultiCount(string $collection, string $column, array $values, array $extra = array())

Count the number of objects in a collection with the given values.

Parameters

string $collection
string $column
array $values
array $extra

Return Value

int

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Validation/PresenceVerifierInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部