Unique

Unique

class Unique (View source)

Methods

void __construct(string $table, string $column = 'NULL')

Create a new unique rule instance.

$this where(string $column, string $value = null)

Set a "where" constraint on the query.

$this whereNot(string $column, string $value)

Set a "where not" constraint on the query.

$this whereNull(string $column)

Set a "where null" constraint on the query.

$this whereNotNull(string $column)

Set a "where not null" constraint on the query.

$this ignore(mixed $id, string $idColumn = 'id')

Ignore the given ID during the unique check.

$this using(Closure $callback)

Register a custom query callback.

array queryCallbacks()

Get the custom query callbacks for the rule.

string __toString()

Convert the rule to a validation string.

doc_Laravel
2016-11-02 16:42:53
Comments
Leave a Comment

Please login to continue.