You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel will automatically register the [ServiceProvider](https://github.com/codezero-be/laravel-unique-translation/blob/master/src/UniqueTranslationServiceProvider.php).
35
35
36
-
## Usage
36
+
## 🛠 Usage
37
37
38
38
For the following examples, I will use a `slug` in a `posts` table as the subject of our validation.
Your existing `slug` column (JSON) in a `posts` table:
180
180
@@ -205,7 +205,7 @@ The result is that `slug[en]` is valid, since the only `en` value in the databas
205
205
206
206
And `slug[nl]` would fail, because there already is a `nl` value of `abc`.
207
207
208
-
## Error Messages
208
+
## ⚠️ Error Messages
209
209
210
210
Whether you are validating a single translation (`'slug'`) or an array of translations (`'slug.*'`), if validation fails, you will find an error for both the single and the localized key:
If you discover any security related issues, please [e-mail me](mailto:[email protected]) instead of using the issue tracker.
238
238
239
-
## Changelog
239
+
## 📖 Changelog
240
240
241
241
See a list of important changes in the [changelog](https://github.com/codezero-be/laravel-unique-translation/blob/master/CHANGELOG.md).
242
242
243
-
## License
243
+
## 📜 License
244
244
245
245
The MIT License (MIT). Please see [License File](https://github.com/codezero-be/laravel-unique-translation/blob/master/LICENSE.md) for more information.
0 commit comments