Tailor\Classes\PresenceVerifier
Overview
PresenceVerifier adds custom logic to exclude drafts and versions
Extends
- Illuminate\Validation\DatabasePresenceVerifier
Implements
- Illuminate\Validation\PresenceVerifierInterface
- Illuminate\Validation\DatabasePresenceVerifierInterface
Protected Properties
protected string|null $draftModeColumn
protected string|null $isVersionColumn
protected string|null $deletedAtColumn
Show inherited protected properties
Inherited Protected Properties
- $db - The database connection instance. (defined in Illuminate\Validation\DatabasePresenceVerifier)
- $connection - The database connection to use. (defined in Illuminate\Validation\DatabasePresenceVerifier)
Public Methods
public setDeletedAt()
public setDeletedAt($column = null): void
public setDraftMode()
public setDraftMode($column = null): void
public setIsVersion()
public setIsVersion($column = null): void
Inherited Public Methods
- __construct() - Create a new database presence verifier. (defined in Illuminate\Validation\DatabasePresenceVerifier)
- getCount() - Count the number of objects in a collection having the given value. (defined in Illuminate\Validation\DatabasePresenceVerifier)
- getMultiCount() - Count the number of objects in a collection with the given values. (defined in Illuminate\Validation\DatabasePresenceVerifier)
- setConnection() - Set the connection to be used. (defined in Illuminate\Validation\DatabasePresenceVerifier)
Protected Methods
protected addConditions()
protected addConditions(
Illuminate\Database\Query\Builder $query,
array $conditions
): Illuminate\Database\Query\Builder
addConditions to the query.
Show inherited protected methods
Inherited Protected Methods
- addWhere() - Add a "where" clause to the given query. (defined in Illuminate\Validation\DatabasePresenceVerifier)
- table() - Get a query builder for the given table. (defined in Illuminate\Validation\DatabasePresenceVerifier)