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
上面的类名在无意中变成了小写,改成大写即可
对于App
Http
Controllers
TaskController
类,该文件应位于:
/app/Http/Controllers/TaskController.php
且类名必须未class TaskController{}