代码之家  ›  专栏  ›  技术社区  ›  Martney Acha

升级我的Laravel Yajra表

  •  0
  • Martney Acha  · 技术社区  · 7 年前

    我目前在7.5.0中,我想升级到8.0.3,我遵循了中的步骤 https://yajrabox.com/docs/laravel-datatables/master/upgrade 但我遇到了这个错误

    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 0 installs, 1 update, 0 removals
      - Updating yajra/laravel-datatables-oracle (v7.5.0 => v8.0.3): Downloading (conneDownloading (100%)
    Writing lock file
    Generating optimized autoload files
    > Illuminate\Foundation\ComposerScripts::postUpdate
    > php artisan optimize
    
    
      [Symfony\Component\Debug\Exception\FatalThrowableError]
      Class 'Yajra\Datatables\DatatablesServiceProvider' not found
    
    
    Script php artisan optimize handling the post-update-cmd event returned with error code 1
    
    Installation failed, reverting ./composer.json to its original content.
    
    2 回复  |  直到 7 年前
        2
  •  1
  •   Kevin Khew    7 年前
    1. 在文件夹中 config/app.php ,暂时注释掉 Yajra\Datatables\DatatablesServiceProvider .
    2. composer update
    3. 取消对提供程序的注释
    4. 完成。
    5. 为了确保它工作正常,可以再次运行命令 .

    参考来源: https://yajrabox.com/docs/laravel-datatables/master/upgrade#v5-to-v6