codingpaws / laravel-safe-key-generate
Safely generate Laravel application keys, not only in production
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/codingpaws/laravel-safe-key-generate
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.