maxsky / Lumen-AppKey-Generator by maxsky

Set the application key in Lumen Framework.
58,831
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: 2024-11-23 03:13:31
Package Statistics
Total Downloads: 58,831
Monthly Downloads: 2,051
Daily Downloads: 82
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.