Skip to content

Commit 9edb6b8

Browse files
committed
fix documentation and exception message
1 parent 2b7cfd6 commit 9edb6b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/usage/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ composer require astrotomic/laravel-translatable
1313
We copy the configuration file to our project.
1414

1515
```bash
16-
php artisan vendor:publish --tag=translatable
16+
php artisan vendor:publish --provider="Astrotomic\Translatable\TranslatableServiceProvider"
1717
```
1818

1919
{% hint style="info" %}

src/Translatable/Locales.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function load(): void
8888
$localesConfig = (array) $this->config->get('translatable.locales', []);
8989

9090
if (empty($localesConfig)) {
91-
throw new LocalesNotDefinedException('Please make sure you have run "php artisan config:publish astrotomic/laravel-translatable" and that the locales configuration is defined.');
91+
throw new LocalesNotDefinedException('Please make sure you have run `php artisan vendor:publish --provider="Astrotomic\Translatable\TranslatableServiceProvider"` and that the locales configuration is defined.');
9292
}
9393

9494
$this->locales = [];

0 commit comments

Comments
 (0)