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

Commit

Permalink
Update documentation to note change in migration strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
unicodeveloper committed Jul 14, 2020
1 parent 094717f commit 6abfeba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ class Page extends Model
}
```

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

**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`.
```bash
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider" --tag="laravel-cloudinary-migration"
```

**Note:** Once this has been published, run `php artisan migrate` to create the required table in your DB.

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

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

```bash
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider"
php artisan vendor:publish --provider="Unicodeveloper\Cloudinary\CloudinaryServiceProvider" --tag="laravel-cloudinary-config"
```

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

0 comments on commit 6abfeba

Please sign in to comment.