Skip to content

MoreThanValue#

A validation rule that checks if the POSTed value is more than a value found in a database row.

Please note, this validation fails when it can not find a record to compare against.

Class#

LaravelExtendedValidation\Rules\Database\MoreThanValue

Constructor argument(s)#

$table = '' // Table name to search in
$column = '' // Column the compare the value with.
$identifierColumn = '' // Identifying column
$uniqueIdentifier = '' // Unique identifying value for a row (Would most likely be a primary key value)