laravel软件包-找不到类'my-username \ MyPackage \ TodosServiceProvider'

时间:2019-04-21 14:27:08

标签: laravel package repository gitlab

我编写了一个Laravel包(在项目中运行良好)并将其存储在Gitlab私有存储库中。我创建了另一个Laravel项目,然后安装了该软件包,但出现错误:

In ProviderRepository.php line 208:
Class 'ytdm\todos\TodosServiceProvider' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

我在这里https://gitlab.com/ntp-laravel-packages/todo-pkg

发布了我的Gitlab存储库

和我的应用程序的composer.json

"repositories": [ { "type": "git", "url": "https://gitlab.com/ntp-laravel-packages/todo-pkg.git" } ], "require": { "php": "^7.1.3", "fideloper/proxy": "^4.0", "laravel/framework": "5.8.*", "laravel/tinker": "^1.0", "ytdm/todos": "dev-master" },

谢谢

0 个答案:

没有答案