Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel 弃用通知书及;错误:依赖项安装失败_Laravel_Heroku - Fatal编程技术网

Laravel 弃用通知书及;错误:依赖项安装失败

Laravel 弃用通知书及;错误:依赖项安装失败,laravel,heroku,Laravel,Heroku,当我把我的项目推给heroku时,我遇到了这个错误。怎么了 Deprecation Notice: Class App\Http\Controllers\Admin\n ./app/Http/Controllers/Administrator/Auth/LoginController.php doesding standard. It will not autoload anymore in Composer v2.0. in phau/php/bin/composer/src/Composer

当我把我的项目推给heroku时,我遇到了这个错误。怎么了

Deprecation Notice: Class App\Http\Controllers\Admin\n ./app/Http/Controllers/Administrator/Auth/LoginController.php doesding standard. It will not autoload anymore in Composer v2.0. in phau/php/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
remote:        Deprecation Notice: Class App\Models\Vendor located i not comply with psr-4 autoloading standard. It will not autoload anr:///tmp/build_fd6c0433/.heroku/php/bin/composer/src/Composer/Autolo
remote:        Deprecation Notice: Class App\Models\Rider located inot comply with psr-4 autoloading standard. It will not autoload anym///tmp/build_fd6c0433/.heroku/php/bin/composer/src/Composer/Autoload
remote:        > Illuminate\Foundation\ComposerScripts::postAutoload
remote:        > @php artisan package:discover --ansi
remote:        
remote:        In ProviderRepository.php line 208:
remote:
remote:          Class 'Tymon\JWTAuth\Providers\LaravelServiceProvid
remote:
remote:
remote:        Script @php artisan package:discover --ansi handling eturned with error code 1
remote:  !     WARNING: There was a class not found error in your co
remote:
remote:  !     ERROR: Dependency installation failed!
remote:  !
remote:  !     The 'composer install' process failed with an error. 
remote:  !     may be the download or installation of packages, or a
remote:  !     post-install hook (e.g. a 'post-install-cmd' item in 
remote:  !     in your 'composer.json'.
remote:  !
remote:  !     Typical error cases are out-of-date or missing parts 
remote:  !     timeouts when making external connections, or memory 
remote:  !
remote:  !     Check the above error output closely to determine the
remote:  !     the problem, ensure the code you're pushing is functi
remote:  !     properly, and that all local changes are committed co
remote:  !
remote:  !     For more information on builds for PHP on Heroku, ref
remote:  !     https://devcenter.heroku.com/articles/php-support
remote:  !
remote:  !     REMINDER: the following warnings were emitted during 
remote:  !     check the details above, as they may be related to th
remote:  !     - Your 'composer.lock' is out of date!
remote:  !     - There was a class not found error in your code
  • 确保composer.json(Tymon\JWTAuth)中有该包
  • 如果是,只需编写器更新[包装名称]
  • 作曲家转储自动加载
  • 希望它能像帮助我一样帮助我

    如果上述方法不起作用!只需确保您的包在composer.json中从require dev移动到require