mnshuhailey/lumen-key-generator

Set the application key in Lumen Framework.

dev-main 2024-02-28 04:33 UTC

This package is auto-updated.

Last update: 2025-06-28 07:28:59 UTC


README

composer require mnshuhailey/lumen-key-generator

Description

Support generate APP_KEY in Lumen same as Laravel.

Usage

Modify $commands variable in app/Console/Kernel:

protected $commands = [
    \Illuminate\Console\KeyGenerateCommand::class,
];

Then run command at project root path:

php artisan key:generate
php artisan key:generate --show

Add param --show will display a generate key without replace APP_KEY in .env file.