livewire-datatables icon indicating copy to clipboard operation
livewire-datatables copied to clipboard

php 8.1 problem

Open ibrahim-lab95 opened this issue 1 year ago • 8 comments

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.

ibrahim-lab95 avatar Aug 09 '23 04:08 ibrahim-lab95

you can try for the moment with this fork: https://github.com/arm092/livewire-datatables I am working with it and work perfect!

insulae avatar Aug 09 '23 21:08 insulae

@insulae Thank you very much, but when I tried to use callback(), an error appeared mentioning getValue()

ibrahim-lab95 avatar Aug 10 '23 11:08 ibrahim-lab95

@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 avatar Aug 10 '23 12:08 insulae

@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

ibrahim-lab95 avatar Aug 10 '23 13:08 ibrahim-lab95

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.

Nowocyn avatar Oct 26 '23 07:10 Nowocyn

https://github.com/MedicOneSystems/livewire-datatables/releases/tag/v0.10.2

thyseus avatar Oct 26 '23 07:10 thyseus

@thyseus thanks a lot 👍

Nowocyn avatar Oct 26 '23 08:10 Nowocyn

@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)

arm092 avatar Nov 22 '23 21:11 arm092