class DatabasePresenceVerifier implements PresenceVerifierInterface (View source)
void | __construct(ConnectionResolverInterface $db) Create a new database presence verifier. | |
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. | |
void | setConnection(string $connection) Set the connection to be used. |
Create a new database presence verifier.
Count the number of objects in a collection having the given value.
Count the number of objects in a collection with the given values.
Set the connection to be used.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Validation/DatabasePresenceVerifier.html