Skip to content

Commit

Permalink
improve docs for exists rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mjarkk committed Nov 13, 2024
1 parent 1d18f2d commit 55404c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,13 @@ Flags:

The field under validation must end with one of the given values.

### `exists`
### `exists:table,column`

[Requires dbrules to be setup!](./README.md#database-rules)

The field under validation must exist in a given database table.

The column name is not required, by default it uses the `id` column.

### `extensions:jpg,png,...`

Expand Down

0 comments on commit 55404c4

Please sign in to comment.