Lumen初始化框架

2018-09-17  本文已影响0人  渔夫的小黑屋
composer create-project --prefer-dist laravel/lumen lumen
composer require predis/predis
composer require illuminate/redis
在bootstrap/app.php中添加
    $app->register(Illuminate\Redis\RedisServiceProvider::class);
在bootstrap/app.php中取消注释
    $app->withFacades();

    $app->withEloquent();
APP_TIMEZONE=PRC

DB_CONNECTION=mysql
DB_HOST=120.0.0.1
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=root
DB_PASSWORD=root
DB_TIMEZONE=+08:00
DB_PREFIX=m_





CACHE_DRIVER=redis
上一篇 下一篇

猜你喜欢

热点阅读