maxsky / Lumen-AppKey-Generator by maxsky

Set the application key in Lumen Framework.
61,428
14
3
Package Data
Maintainer Username: maxsky
Maintainer Contact: max940213@live.com (Max Sky)
Package Create Date: 2019-03-07
Package Last Update: 2019-03-31
Language: PHP
License: MIT
Last Refreshed: 2025-01-14 15:14:41
Package Statistics
Total Downloads: 61,428
Monthly Downloads: 1,340
Daily Downloads: 70
Total Stars: 14
Total Watchers: 3
Total Forks: 0
Total Open Issues: 1

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.