MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 259 forks source link

php 8.1 problem #586

Open ibrahim-lab95 opened 1 year ago

ibrahim-lab95 commented 1 year ago

Hi, when i run composer require mediconesystems/livewire-datatables in a new Laravel 10 application i get errors:

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

insulae commented 1 year ago

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

ibrahim-lab95 commented 1 year ago

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

insulae commented 1 year ago

@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"
},
ibrahim-lab95 commented 1 year ago

@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

Nowocyn commented 11 months ago

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.

thyseus commented 11 months ago

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

Nowocyn commented 11 months ago

@thyseus thanks a lot 👍

arm092 commented 10 months ago

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