We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8a12e5 commit 517f1e3Copy full SHA for 517f1e3
README.md
@@ -94,6 +94,18 @@ $attributes = request()->validate([
94
]);
95
```
96
97
+### Specify a Database Connection
98
+
99
+If you are using multiple database connections, you can specify which one to use by prepending it to the table name, separated by a dot:
100
101
+```php
102
+$attributes = request()->validate([
103
+ 'slug.*' => 'unique_translation:db_connection.posts',
104
+ // or...
105
+ 'slug.*' => UniqueTranslationRule::for('db_connection.posts'),
106
+]);
107
+```
108
109
### Ignore a Record with ID
110
111
If you're updating a record, you may want to ignore the post itself from the unique check.
0 commit comments