Skip to content

Help with php artisan key:generate not showing app key #49010

Closed Answered by gurds91
gurds91 asked this question in Q&A
Discussion options

You must be logged in to vote

hi somehow I managed to solve this, maybe by luck.

I downloaded open SSL which is open source and ran this command in cmd openssl rand -base64 32

this effectively runs and spits out an app key that you can use. I then copied and pasted this app key into the .env file in my laravel project. I then went and saved it but I accidentally saved the .env file as env.txt so this created another file in my project. After deleting this plain text env file, I noticed that the normal app key generated by php artisan magically appeared in my original .env file ;)

Pretty good, maybe a solution others can use to fix this issue if they run into problems with this.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@antimech
Comment options

@antimech
Comment options

@gurds91
Comment options

@antimech
Comment options

Comment options

You must be logged in to vote
2 replies
@antimech
Comment options

@antimech
Comment options

Answer selected by crynobone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants