codingpaws/laravel-safe-key-generate

Safely generate Laravel application keys, not only in production

1.2 2021-07-16 23:46 UTC

This package is auto-updated.

Last update: 2024-04-17 03:40:34 UTC


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.