在Packagist.org上发布后,包创建提供程序无法正常工作

在Packagist.org上发布后,包创建提供程序无法正常工作

问题描述:

I create a package for remote auth token based, In package creation i register package namespace into root composer.json file and package work.when package development is complete i publish package on packagist.org . then i install package in new laravel application and put provider in app.php then run composer dumpautoload i get this error any help me

In ProviderRepository.php line 208:

  Class 'Support\RemoteAuth\JSRServiceProvider' not found

enter image description here

composer json of package is

{
    "name": "support/remote-auth",
    "description": "api authentication libarary",
    "type": "library",
    "license": "MTT",
    "authors": [
        {
            "name": "ravi bhanderi",
            "email": "ravibhanderi14@gmail.com"
        }
    ],
    "minimum-stability": "stable",
    "require": {}
}

我创建了一个基于远程身份验证令牌的包,在包创建中我将包命名空间注册到root composer中。 json code>文件和包工作。当包开发完成后,我在 packagist.org code>上发布包。 然后我在新的 laravel code>应用程序中安装包并将提供程序放在 app.php code>然后运行composer dumpautoload我得到这个错误任何帮助我 p>

 在ProviderRepository.php第208行:
 
未找到类'Support \ RemoteAuth \ JSRServiceProvider 
  code>  pre> 
 
 

p>

包的编译器json是 p>

  {
“name”:“support / remote-auth”,\  n“description”:“api authentication libarary”,
“type”:“library”,
“license”:“MTT”,
“”authors“:[
 {
”name“:”ravi bhanderi  “,
”电子邮件“:”ravibhanderi14@gmail.com“
} 
 
],
”最小稳定性“:”稳定“,
”要求“:{} 
} 
  code  >  pre> 
  div>

Have a look at the autoload section for composer at getcomposer.org/doc/04-schema.md#autoload - how should the filepath for your provider be detected if you do not provide any help