Skip to content

Commit b90038b

Browse files
committed
Include illuminate/contracts as a dependency. Add instructions to readme relating to publishing message translations.
1 parent 5cd4afc commit b90038b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ PHP >= 7.2, Laravel `>=5.8 | 6.x | 7.x`.
1818
composer require f9webltd/laravel-validation-rules
1919
```
2020

21-
The package will automatically register itself.
21+
To publish the package validation message translations:
22+
23+
``` bash
24+
php artisan vendor:publish --provider="F9Web\ValidationRules\ValidationRulesServiceProvider"
25+
```
26+
27+
Published translations are available at `resources/lang/vendor/f9web-validation-rules/messages.php`.
2228

2329
## Usage
2430

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f9webltd/laravel-validation-rules",
3-
"description": "Some useful Laravel validation rules",
3+
"description": "A collection of useful Laravel validation rules",
44
"keywords": [
55
"laravel",
66
"laravel validation rules",
@@ -21,6 +21,7 @@
2121
"require": {
2222
"php": "^7.2",
2323
"ext-mbstring": "*",
24+
"illuminate/contracts": "5.8.* || ^6.0 || ^7.0",
2425
"illuminate/support": "5.8.* || ^6.0 || ^7.0"
2526
},
2627
"require-dev": {

0 commit comments

Comments
 (0)