在第 208 行 ProviderRepository.php 中找不到提供商 Class
Provider Class not found in In ProviderRepository.php line 208
我创建了一个简单的 Laravel 包并将其推送到 Github
https://github.com/akshaykhale1992/model-notes
并在 Packagist 上发布了包
https://packagist.org/packages/akshaykhale1992/model-note
我试图在我的 laravel 应用程序中安装它,它从 Github 中提取了包,但包安装不成功。
下面是 composer 命令返回的错误
root@root.com:~/$ composer require akshaykhale1992/model-note
Using version dev-master for akshaykhale1992/model-note
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing akshaykhale1992/model-note (dev-master 5543914): Cloning 554391487e from cache
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In ProviderRepository.php line 208:
Class 'AkshayKhale1992\ModelNote\ModelNoteProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
提前致谢。
终端截图
我创建了一个简单的 Laravel 包并将其推送到 Github
https://github.com/akshaykhale1992/model-notes
并在 Packagist 上发布了包
https://packagist.org/packages/akshaykhale1992/model-note
我试图在我的 laravel 应用程序中安装它,它从 Github 中提取了包,但包安装不成功。
下面是 composer 命令返回的错误
root@root.com:~/$ composer require akshaykhale1992/model-note
Using version dev-master for akshaykhale1992/model-note
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing akshaykhale1992/model-note (dev-master 5543914): Cloning 554391487e from cache
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In ProviderRepository.php line 208:
Class 'AkshayKhale1992\ModelNote\ModelNoteProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
提前致谢。
终端截图