Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk authored Sep 10, 2024
1 parent e50969d commit bc0dc13
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,26 @@ You can install the package via composer:
composer require vormkracht10/laravel-open-graph-image
```

Run the command to install the package:

```bash
php artisan open-graph-image:install
```

Then you should install puppeteer:

```bash
npm install puppeteer
```

Run the command to install the package:
And make sure Puppeteer can find the correct node and npm versions on your computer or server. When it can't find node or npm, add the custom paths using these .env variables. You can use `which node` and `which npm` to find the correct paths to these binaries:

```bash
php artisan open-graph-image:install
```
NODE_PATH="" // fill in output of `which node`
NPM_PATH="" // fill in output of `which npm`
```

You should also publish the views:
You should also publish the views, to change the design of your Open Graph Images:

```bash
php artisan vendor:publish --tag="open-graph-image-views"
Expand Down

0 comments on commit bc0dc13

Please sign in to comment.