升级我的 Laravel Yajra Table
Upgrading my Laravel Yajra Table
我目前使用的是 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.
- 文件夹
config/app.php
中,暂时注释掉
Yajra\Datatables\DatatablesServiceProvider
.
- 运行命令
composer update
.
- 取消注释提供商
Yajra\Datatables\DatatablesServiceProvider
.
- 完成。
- 为了确保它有效,可以运行再次命令
composer update
.
参考自:https://yajrabox.com/docs/laravel-datatables/master/upgrade#v5-to-v6
在 Yajra DataTables V8 中,名称空间和外观已更新。
https://yajrabox.com/docs/laravel-datatables/master/upgrade#namespace
https://yajrabox.com/docs/laravel-datatables/master/upgrade#facade
我目前使用的是 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.
- 文件夹
config/app.php
中,暂时注释掉Yajra\Datatables\DatatablesServiceProvider
. - 运行命令
composer update
. - 取消注释提供商
Yajra\Datatables\DatatablesServiceProvider
. - 完成。
- 为了确保它有效,可以运行再次命令
composer update
.
参考自:https://yajrabox.com/docs/laravel-datatables/master/upgrade#v5-to-v6
在 Yajra DataTables V8 中,名称空间和外观已更新。
https://yajrabox.com/docs/laravel-datatables/master/upgrade#namespace https://yajrabox.com/docs/laravel-datatables/master/upgrade#facade