我之前一般都是把自己写的本地包放到classmap里的;
前两天看了一个视频,比较标准的写法是,放到psr-4里;
写到这个里面之后,找不到类;
"autoload": {
"classmap": [
"database/seeds",
"database/factories",
"vendor/jormin/laravel-ddoc",
"vendor/jormin/laravel-kdniao",
"vendor/xdstack/ip2location",
"vendor/overtrue/weather"
],
"psr-4": {
"App\\": "app/",
"Jeffcott\\express\\": "packages/jeffcott/express/src",
"Jeffcott\\clear\\": "packages/jeffcott/clear/src/",
"Jeffcott\\Weather\\": "packages/jeffcott/weather/src",
"Jeffcott\\chinese-calendar\\": "packages/jeffcott/chinese-calendar/src"
}
},
另外一个包:
文件路径
求助;