Skip to content
This repository was archived by the owner on Jul 15, 2020. It is now read-only.

Commit 6abfeba

Browse files
Update documentation to note change in migration strategy
1 parent 094717f commit 6abfeba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ class Page extends Model
108108
}
109109
```
110110

111-
Next, ensure you already published the media migration files that ships with this package via `php artisan migrate`.
111+
Next, publish the package's migration file using this command:
112112

113-
**Note:** Once this package has been installed, your app automatically picks up the migration files and creates the required tables in your DB the next time you run `php artisan migrate`.
113+
```bash
114+
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider" --tag="laravel-cloudinary-migration"
115+
```
116+
117+
**Note:** Once this has been published, run `php artisan migrate` to create the required table in your DB.
114118

115119
You can now attach media assets to your model like so:
116120

@@ -274,7 +278,7 @@ Also, register the Cloudinary Facade like so:
274278
You can publish the configuration file using this command:
275279

276280
```bash
277-
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider"
281+
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider" --tag="laravel-cloudinary-config"
278282
```
279283

280284
A configuration-file named `cloudinary.php` with some sensible defaults will be placed in your `config` directory:

0 commit comments

Comments
 (0)