codingpaws / laravel-safe-key-generate
This package is abandoned and no longer maintained.
No replacement package was suggested.
Safely generate Laravel application keys, not only in production
Package info
gitlab.com/codingpaws/laravel-safe-key-generate
pkg:composer/codingpaws/laravel-safe-key-generate
1.2
2021-07-16 23:46 UTC
Requires
- illuminate/console: ^8.0
- illuminate/encryption: ^8.0
- illuminate/support: ^8.0
README
The php artisan key:generate command in Laravel overwrites the APP_KEY by default on every execution, except in production. As a developer, you may not want to accidentally overwrite your application key though, leading to invalid cookies and sessions. This package secures key:generate by preventing accidental key overwrites when the APP_KEY is already set in the .env file.