Sometimes EncryptionServiceProvider not getting configs form .env "No application encryption key has been specified" error! #4976
Unanswered
ss-koshala
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Nova doesn't interfere with either |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Sometimes EncryptionServiceProvider not getting configs form .env
$config = $app->make('config')->get('app');
here $config not getting from .env file. So key filed empty and getting "No application encryption key has been specified" error.
Detailed steps to reproduce the issue on a fresh Nova installation:
In laravel nova admin load "View" on a resource, that resource should have relation fields like, HasOne, or HasMany or any other relation field. And then go to the "view". like this "admin/resources/members/1#Documents=nda" and reload multiple times, we can see console errors.
nova-api/hotel-reservations?search=&filters=W10%3D&orderBy=&perPage=5&trashed=&page=1&viaResource=members&viaResourceId=1&viaRelationship=hotelReservations&relationshipType=hasMany
"nova-api/roles/actions?viaResource=users&viaResourceId=2&viaRelationship=roles&relationshipType=morphToMany&display=index"
like this.
Beta Was this translation helpful? Give feedback.
All reactions