diff --git a/README.md b/README.md index e78b129..45b73ae 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,17 @@ Then publish the assets from your provider : php artisan vendor:publish ``` -Finally add your API key in the .env : +Finally get your API key : ```bash -BMAIL_API_KEY=your_key -BMAIL_API_URL=the_api_url +Connect to https://bluescale.email, go to the Templates tab, click on the API button and copy your API key. +``` + +And add it in your .env, along with the API URL : + +```bash +BMAIL_API_KEY=your_api_key +BMAIL_API_URL=https://bluescale.email/api/project/template/send ``` ## Usage diff --git a/composer.json b/composer.json index 8680ee4..b1eed97 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,8 @@ } }, "require": { - "guzzlehttp/guzzle": "^6.5" - } + "guzzlehttp/guzzle": "^6.5", + "php": "^7.2" + }, + "prefer-stable": true } diff --git a/src/BMailApi.php b/src/BMailApi.php index 1a681d4..51519dd 100644 --- a/src/BMailApi.php +++ b/src/BMailApi.php @@ -1,10 +1,9 @@ $this->template, @@ -168,5 +167,4 @@ class BMailTemplate implements \JsonSerializable { return $this->toArray(); } - } diff --git a/src/Broadcasting/BMailChannel.php b/src/Broadcasting/BMailChannel.php index a2dfb09..b92ee3c 100644 --- a/src/Broadcasting/BMailChannel.php +++ b/src/Broadcasting/BMailChannel.php @@ -1,14 +1,19 @@ toTemplate($notifiable);