class DatabasePresenceVerifier implements DatabasePresenceVerifierInterface (View source)
protected ConnectionResolverInterface | $db | The database connection instance. | |
protected string | $connection | The database connection to use. |
void | __construct(ConnectionResolverInterface $db) Create a new database presence verifier. | |
int | getCount(string $collection, string $column, string $value, int|null $excludeId = null, string|null $idColumn = null, array $extra = []) Count the number of objects in a collection having the given value. | |
int | getMultiCount(string $collection, string $column, array $values, array $extra = []) Count the number of objects in a collection with the given values. | |
Builder | addConditions(Builder $query, array $conditions) Add the given conditions to the query. | |
void | addWhere(Builder $query, string $key, string $extraValue) Add a "where" clause to the given query. | |
Builder | table(string $table) Get a query builder for the given table. | |
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.
Add the given conditions to the query.
Add a "where" clause to the given query.
Get a query builder for the given table.
Set the connection to be used.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Validation/DatabasePresenceVerifier.html