Modifying readme and api files
This commit is contained in:
parent
e80f236ee6
commit
88eab63449
15
README.md
15
README.md
|
@ -4,7 +4,7 @@ The BMail package allows you to send email templates on Laravel to the Bluescale
|
|||
|
||||
## Usage
|
||||
|
||||
In your composer.json, add :
|
||||
First in your composer.json, add :
|
||||
|
||||
```bash
|
||||
"require": {
|
||||
|
@ -23,16 +23,23 @@ and
|
|||
]
|
||||
```
|
||||
|
||||
Then update your package file :
|
||||
Next update your package :
|
||||
|
||||
```bash
|
||||
composer update bluescale/laravel-mail
|
||||
composer update bluescale/laravel-bmail
|
||||
```
|
||||
|
||||
Finally publish the assets from your provider :
|
||||
Then publish the assets from your provider :
|
||||
|
||||
```bash
|
||||
php artisan vendor:publish
|
||||
```
|
||||
|
||||
Finally add your API key in the .env :
|
||||
|
||||
```bash
|
||||
BMAIL_API_KEY=your_key
|
||||
BMAIL_API_URL=the_api_url
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
return [
|
||||
|
||||
'bmail' => env('BMAIL_KEY', null)
|
||||
'api_key' => env('BMAIL_API_KEY', null),
|
||||
'api_url' => env('BMAIL_API_URL', null)
|
||||
|
||||
];
|
||||
|
|
|
@ -22,10 +22,7 @@ class BMailApi
|
|||
|
||||
public function send($template)
|
||||
{
|
||||
$url = "http://127.0.0.1:9000/api/project/template/send";
|
||||
|
||||
// TODO
|
||||
// $url = "http://127.0.0.1:9000/api/project/template/send";
|
||||
$url = config('bmail.api_url');
|
||||
|
||||
$client = new Client();
|
||||
|
||||
|
|
Loading…
Reference in New Issue