laravel/lumen-framework:“5.7.*” and flipbox/lumen-generator:“^5.6” Class Not Found

故事扮演 提交于 2019-12-04 21:39:40

It was really a stupid mistake, after debugging and going to the north pole back and forth. I figured out that I had the class namespace referenced wrongly so instead of using below:

if ($app->environment() !== 'production') {
    $app->register(FlipBox\LumenGenerator\LumenGeneratorServiceProvider::class);
}

I should have used small letter b instead of B so the below works:

if ($app->environment() !== 'production') {
    $app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
}

Then doing php artisan list you will get all the make:* goodies:

What really worked for me, was to run composer install, that installed dependencies that I had not yet installed (due to changes made by others by the use of GIT repository).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!