当我试图开始修补时,我看到:
Class 'ModulesBookingSystemProvidersBookingSystemServiceProvider' not found
但是班级在指定的地方。我试图用composer转储自动加载,但我仍然得到:
> @php artisan package:discover
In ProviderRepository.php line 208:
Class 'ModulesBookingSystemProvidersBookingSystemServiceProvider'
not found
Script @php artisan package:discover handling the post-autoload-dump event
returned with error code 1
这可能是什么原因造成的?
考虑到问题中存在的事实,这似乎是最有可能的解决方案:
在composer.json
机会中
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/"
}
},
至
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/",
"Modules\": "modules/"
}
},
然后运行composer dump
一次:(