Closed timyboy12345 closed 5 years ago
Well, I did fix it. But it still seems like it could be solved a little easier. Here's what I did to fix it:
Maybe there could be a check to make sure a key has been passed to the config? This way, the error isn't thrown.
Thanks for following up :).
The issue was probably solved by setting the key in .env and clearing the cache.
Currently there's no way around this as Laravel Mollie's ServiceProvider needs to be eagerly loaded. May solve that later on down the road.
I just downloaded the latest version of cashier-mollie and was excited to use it. However, after downloading it gave the error
Mollie\Api\Exceptions\ApiException : Invalid API key:
. An API key must start with 'test' or 'live' and must be at least 30 characters long.', while I'm not using the API anywhere.I also added the
MOLLIE_KEY="***"
key (with my real key, of course) to my .env file, but this doesn't seem to do anything. Every time I do try to execute a command through the console (even trying to clear the cache) the error appears. I can't even continue to step 1 of the installation (php artisan cashier:install
) because this throws the same error.I've pasted the whole error below:
Does anyone have an idea how I can fix this issue?
PS: I'm using Laravel framework 6.0.3