cloudcreativity/laravel-json-api

bug: service provider boot throws "No application encryption key has been specified."

paul-thebaud opened this issue · 1 comments

When cloning a project with this package automatically discovered on a dockerized environment, we were seing errors "No application encryption key has been specified.".

Looks like this is due to the ServiceProvider bootResponseMacro method (because ResponseFactory will make the service container craft a SessionStore, which requires an application key).

Changing the service provider to only boot response macro if not running in console could fix this.

Looks like this error is due to the use of SESSION_ENCRYPT=true env variable, not to your package.
Closing the issue.