Looking to hire Laravel developers? Try LaraJobs

laravel-safe-key-generate maintained by codingpaws

Description
Safely generate Laravel application keys, not only in production
Author
Last update
2021/07/17 01:46 (dev-main)
License
Links
Downloads
29
Tags

Comments
comments powered by Disqus

Laravel Safe key:generate

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.