2017-09-13 70 views
0

我目前的7.5.0,我想升級到8.0.3,我跟着https://yajrabox.com/docs/laravel-datatables/master/upgrade步驟,但我遇到了這個錯誤升級我的Laravel Yajra表

./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. 

回答

0
  1. 在文件夾config/app.php,暫時退出 Yajra\Datatables\DatatablesServiceProvider
  2. 運行命令composer update
  3. 取消供應商評論Yajra\Datatables\DatatablesServiceProvider
  4. 完成。
  5. 爲了確保它能正常工作,可以再次運行命令composer update。從

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