diff --git a/README.md b/README.md index b9d4ece..9960d8f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ Then add the facade to your `aliases` array: Finally, publish the config file with `php artisan vendor:publish`or`php artisan vendor:publish --provider="Kavenegar\Laravel\ServiceProviderLaravel5"`.You'll find it at `config/kavenegar.php`. +You can also set `KAVENEGAR_API_KEY` in your `.env` file. + ## Laravel 4 Add the `Kavenegar\Laravel\ServiceProvider` provider to the `providers` array in `app/config.php`: diff --git a/src/config/config.php b/src/config/config.php index 2cdb4e1..b14c3a4 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -1,4 +1,4 @@ '', -]; \ No newline at end of file + 'apikey' => env('KAVENEGAR_API_KEY'), +];