我已经创建了一个简单的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
谢谢。