Lumen安装redis依赖后无法使用了
请教下各位
Lumen我安装了redis的依赖之前 一切使用正常 安装依赖后
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.5.*",
"vlucas/phpdotenv": "~2.2",
"predis/predis": "^1.1",
"illuminate/redis": "5.5.*",
"laravel/framework": "5.5.*"
},
app.php中的$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
require __DIR__ . '/../routes/web.php';
});提示异常:Call to undefined method Laravel\\Lumen\\Application::group()
注册$app->register(Illuminate\Redis\RedisServiceProvider::class);提示异常 Call to a member function send() on string in D:\phpStudy\PHPTutorial\WWW\PayAPI\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php:127
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.5.*",
"vlucas/phpdotenv": "~2.2",
"predis/predis": "^1.1",
"illuminate/redis": "5.5.*",
"laravel/framework": "5.5.*"
},
app.php中的$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
require __DIR__ . '/../routes/web.php';
});提示异常:Call to undefined method Laravel\\Lumen\\Application::group()
注册$app->register(Illuminate\Redis\RedisServiceProvider::class);提示异常 Call to a member function send() on string in D:\phpStudy\PHPTutorial\WWW\PayAPI\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php:127
No Comments