我试图在我的GoDaddy豪华共享主机服务器上使用作曲家从AnandSiddharth安装Laravel Paytm钱包插件。我无法将其安装在 laravel 文件夹中。我将供应商文件从桌面复制到服务器,并更新了提供商和别名类别中的配置/应用程序.php页面。然后 Web 服务器抛出错误
Class 'AnandLaravelPaytmWalletPaytmWalletServiceProvider' not found
我尝试将其安装在服务器主文件夹中并移至供应商,但它显示相同的错误。composer.json 文件将更新。您可以看到屏幕截图。任何有效的解决方案都会有所帮助。谢谢。
错误日志
FatalThrowableError in ProviderRepository.php line 146:
Class 'AnandLaravelPaytmWalletPaytmWalletServiceProvider' not found in ProviderRepository.php line 146
at ProviderRepository->createProvider('AnandLaravelPaytmWalletPaytmWalletServiceProvider') in ProviderRepository.php line 114
at ProviderRepository->compileManifest(array('IlluminateFoundationProvidersArtisanServiceProvider', 'IlluminateAuthAuthServiceProvider', 'IlluminateBroadcastingBroadcastServiceProvider', 'IlluminateBusBusServiceProvider', 'IlluminateCacheCacheServiceProvider', 'IlluminateFoundationProvidersConsoleSupportServiceProvider', 'IlluminateRoutingControllerServiceProvider', 'IlluminateCookieCookieServiceProvider', 'IlluminateDatabaseDatabaseServiceProvider', 'IlluminateEncryptionEncryptionServiceProvider', 'IlluminateFilesystemFilesystemServiceProvider', 'IlluminateFoundationProvidersFoundationServiceProvider', 'IlluminateHashingHashServiceProvider', 'IlluminateMailMailServiceProvider', 'IlluminatePaginationPaginationServiceProvider', 'IlluminatePipelinePipelineServiceProvider', 'IlluminateQueueQueueServiceProvider', 'IlluminateRedisRedisServiceProvider', 'IlluminateAuthPasswordsPasswordResetServiceProvider', 'IlluminateSessionSessionServiceProvider', 'IlluminateTranslationTranslationServiceProvider', 'IlluminateValidationValidationServiceProvider', 'IlluminateViewViewServiceProvider', 'AppProvidersAppServiceProvider', 'AppProvidersAuthServiceProvider', 'AppProvidersEventServiceProvider', 'AppProvidersRouteServiceProvider', 'AnandLaravelPaytmWalletPaytmWalletServiceProvider')) in ProviderRepository.php line 60
at ProviderRepository->load(array('IlluminateFoundationProvidersArtisanServiceProvider', 'IlluminateAuthAuthServiceProvider', 'IlluminateBroadcastingBroadcastServiceProvider', 'IlluminateBusBusServiceProvider', 'IlluminateCacheCacheServiceProvider', 'IlluminateFoundationProvidersConsoleSupportServiceProvider', 'IlluminateRoutingControllerServiceProvider', 'IlluminateCookieCookieServiceProvider', 'IlluminateDatabaseDatabaseServiceProvider', 'IlluminateEncryptionEncryptionServiceProvider', 'IlluminateFilesystemFilesystemServiceProvider', 'IlluminateFoundationProvidersFoundationServiceProvider', 'IlluminateHashingHashServiceProvider', 'IlluminateMailMailServiceProvider', 'IlluminatePaginationPaginationServiceProvider', 'IlluminatePipelinePipelineServiceProvider', 'IlluminateQueueQueueServiceProvider', 'IlluminateRedisRedisServiceProvider', 'IlluminateAuthPasswordsPasswordResetServiceProvider', 'IlluminateSessionSessionServiceProvider', 'IlluminateTranslationTranslationServiceProvider', 'IlluminateValidationValidationServiceProvider', 'IlluminateViewViewServiceProvider', 'AppProvidersAppServiceProvider', 'AppProvidersAuthServiceProvider', 'AppProvidersEventServiceProvider', 'AppProvidersRouteServiceProvider', 'AnandLaravelPaytmWalletPaytmWalletServiceProvider')) in Application.php line 507
at Application->registerConfiguredProviders() in RegisterProviders.php line 17
at RegisterProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('IlluminateFoundationBootstrapDetectEnvironment', 'IlluminateFoundationBootstrapLoadConfiguration', 'IlluminateFoundationBootstrapConfigureLogging', 'IlluminateFoundationBootstrapHandleExceptions', 'IlluminateFoundationBootstrapRegisterFacades', 'IlluminateFoundationBootstrapRegisterProviders', 'IlluminateFoundationBootstrapBootProviders')) in Kernel.php line 222
at Kernel->bootstrap() in Kernel.php line 117
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 53
配置/应用.php
AnandLaravelPaytmWalletPaytmWalletServiceProvider::class,
对于 Laravel 5.0,请使用版本 ^1.0.0 对于 Laravel 6.0,请使用版本 ^1.0.0 对于 Laravel 7.0,请使用版本 ^1.0.0 对于 Laravel 8.0,请使用版本 ^2.0.0
检查版本并安装 作曲家需要Anandsiddharth/Laravel-Paytm钱包:1.0.0
作曲家需要供应商/包:版本