-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 2.2.0: Error: Please provide Nexmo API credentials #25
Comments
@vladrusu you're not setting the credentials directly in your config file I hope? You should set them using the env variables. |
Hi !
Yes I do. I set them on .env only on my dev machine. On the production server, if anyone has read access to the php config file, has also access to the .env file. If I am wrong from a security POV, please correct me. Nevertheless, here is my code (nothing fancy): App\Notifications\SMS.php
In App\User.php
I call the notification with: |
I indeed think this is unwise as your config files usually get committed with your source code (which is shared with other developers maybe) and your env file resides on your (secure) server. This probably happened because of this PR which removed the keys from the config but keeps BC with the naming of the environment variables: #22 So I suggest you switch to only using environment variables for this (or publish the nexmo config but I don't recommend doing that). |
Hello!
Since, 2.2.0, I receive the following error:
I reverted back to 2.1 and all is ok. Using Laravel 5.8.
In config/services.php I have the Nexmo credentials:
The text was updated successfully, but these errors were encountered: