maxsky/lumen-app-key-generator

Set the application key in Lumen Framework.

v1.0 2019-03-07 05:44 UTC

This package is auto-updated.

Last update: 2024-03-29 03:44:59 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c696e6b2d3939362e6963752d7265642e737667

Install

composer require maxsky/lumen-app-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.