Introduction to VPS and Web Technology Development

does not comply with psr-4 autoloading standard

自由vps php
/www/direct-selling-system/code # composer dump-autoload
Generating optimized autoload files
Class AppHttpControllerstaskController located in ./app/Http/Controllers/TaskController.php does not comply with psr-4 autoloading standard. Skipping.
Class AppModelsschedules located in ./app/Models/Schedules.php does not comply with psr-4 autoloading standard. Skipping.
Class IlluminateFoundationComposerScripts is not autoloadable, can not call post-autoload-dump script
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
/www/direct-selling-system/code # ls
README.md       bootstrap       config          phpunit.xml     routes          tests           webpack.mix.js
app             composer.json   database        public          server.php      third
artisan         composer.lock   package.json    resources       storage         vendor
/www/direct-selling-system/code # php artisan package:discover --ansi
/www/direct-selling-system/code # composer dump-autoload
Generating optimized autoload files
Class AppHttpControllerstaskController located in ./app/Http/Controllers/TaskController.php does not comply with psr-4 autoloading standard. Skipping.
Class AppModelsschedules located in ./app/Models/Schedules.php does not comply with psr-4 autoloading standard. Skipping.
Class IlluminateFoundationComposerScripts is not autoloadable, can not call post-autoload-dump script



经过检查:
class Schedules extends Authenticatable

上面的类名在无意中变成了小写,改成大写即可

对于AppHttpControllersTaskController类,该文件应位于:

/app/Http/Controllers/TaskController.php
且类名必须未class TaskController{} 



使用chatGPT寻求答案
标签: 暂无标签

免责声明:

本站提供的资源,都来自网络,版权争议与本站无关,所有内容及软件的文章仅限用于学习和研究目的。不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,我们不保证内容的长久可用性,通过使用本站内容随之而来的风险与本站无关,您必须在下载后的24个小时之内,从您的电脑/手机中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。侵删请致信E-mail:master@freevpsweb.com

同类推荐
评论列表