livewire-datatables
livewire-datatables copied to clipboard
php 8.1 problem
Hi, when i run composer require mediconesystems/livewire-datatables in a new Laravel 10 application i get errors:
Problem 1
- mediconesystems/livewire-datatables[v0.0.1, ..., v0.4.3] require php ^7.2.5 -> your php version (8.1.6) does not satisfy that requirement.
- mediconesystems/livewire-datatables[v0.5.0, ..., v0.6.8] require illuminate/support ^7.0|^8.0 -> found illuminate/support[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- mediconesystems/livewire-datatables[v0.7.0, ..., v0.10.0] require illuminate/support ^7.0|^8.0|^9.0 -> found illuminate/support[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- mediconesystems/livewire-datatables v0.10.1 requires reedware/laravel-relation-joins ^2.4|^3.0|dev-l10-compatibility -> found reedware/laravel-relation-joins[v2.4.0, v2.4.1, v2.4.2, v3.0.0] but it conflicts with your root composer.json require (4.0).
- Root composer.json requires mediconesystems/livewire-datatables * -> satisfiable by mediconesystems/livewire-datatables[v0.0.1, ..., v0.10.1].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
you can try for the moment with this fork: https://github.com/arm092/livewire-datatables I am working with it and work perfect!
@insulae Thank you very much, but when I tried to use callback(), an error appeared mentioning getValue()
@ibrahim-lab95 you are trying with the last version of arm092? that problem has already been solved. I don't know much, but if you still have a problem copy your composer.json and we can compare a bit. mine;
"require": {
"php": "^8.1",
"arm092/livewire-datatables": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/jetstream": "^3.2",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "^2.11",
"openspout/openspout": "^4.15",
"simplesoftwareio/simple-qrcode": "^4.2",
"wire-elements/modal": "^1.0",
"wireui/wireui": "^1.17"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel-lang/common": "^3.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
@insulae Too few arguments to function Illuminate\Database\Query\Expression::getValue(), 0 passed in E:\xampp\htdocs\school_management\vendor\arm092\livewire-datatables\src\Http\Livewire\LivewireDatatable.php on line 417 and exactly 1 expected
This issue was fixed with the latest commit, but the latest commit didn't get tagged. With a tag, people could get around this problem.
https://github.com/MedicOneSystems/livewire-datatables/releases/tag/v0.10.2
@thyseus thanks a lot 👍
@insulae Thank you very much, but when I tried to use callback(), an error appeared mentioning getValue()
If you have any problems with my forked version please open issue on it and we will try solve it in short time.
BTW As I remember we've fixed this problem. And BTW Livewire 3 support version will be released after a few seconds)