Open alexandergziresis opened 1 year ago
@alexandergziresis This package has not been fully upgraded to be compatible with laravel 9 or 10
reedware/laravel-relation-joins has Laravel 10.x Support since April 4, this was added in #568
I think updating reedware/laravel-relation-joins should do the work
With Your Version getting this issue
Problem 1
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require arm092/livewire-datatables:*" to figure out if any version is installable, or "composer require arm092/livewire-datatables:^2.1" if you know which you need.
With Your Version getting this issue
I think the problem is in the PHP version. I have not tested it with 8.2 and can't say that the package or depend packages support it. I use it with PHP 8.1 and everything is ok
With Your Version getting this issue
I think the problem is in the PHP version. I have not tested it with 8.2 and can't say that the package or depend packages support it. I use it with PHP 8.1 and everything is ok
Perfectly working in 8.2 and Laravel 9 the only problem is with Laravel 10 installation as per my knowledge
Can You Guide me so that how can I fork the repo make change as you did so that I can test the package in my local env
Thanks in Advance
Can You Guide me
You can clone my forked repo (https://github.com/arm092/livewire-datatables), make changes, commit, push, and create a pull request. I will review it, approve, merge it, and will release a new fixed version
Okay I will send the pull request
Is this issue fixed with https://github.com/MedicOneSystems/livewire-datatables/pull/568 ?
arm092 version works... Any idea when master branch will be installable on Laravel 10?
Someone has to create a new version-tag for the master branch. If you use "dev-master" it will work at the moment.
@thyseus could you create a new version-tag for composer?
Ok just verified it and it works. Thank you so much, m4tr1ck
I just added this line to composer.json require section and ran "composer update".
"mediconesystems/livewire-datatables": "dev-master as 0.10.2",
This basically speculates if dev-master is merged into master branch, it will become 0.10.2 version officially.
thanks man! works perfectly.
AWESOME JOB! But need some help. Livewire 3 now have changed somethings and the structure of directories is some of them. I have created a component using:
sail artisan make:livewire-datatable super.user
which wroks fine as you can see:
CLASS: app/Livewire/Datatables/Super/User.php
Nice. Now I have this route:
Route::get('/', function () {
return view('layouts.super.index');
});
And this view:
<x-app-layout>
<livewire:datatables.super.user />
</x-app-layout>
The datatable component:
<?php
namespace App\Livewire\Datatables\Super;
use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Mediconesystems\LivewireDatatables\Column;
use Mediconesystems\LivewireDatatables\DateColumn;
use Mediconesystems\LivewireDatatables\TimeColumn;
use Mediconesystems\LivewireDatatables\NumberColumn;
use Mediconesystems\LivewireDatatables\BooleanColumn;
class User extends LivewireDatatable
{
public function builder(): Builder
{
return \App\Models\User::query();
}
public function getColumns(): Model|array
{
return [
NumberColumn::name('id')
->label('ID')
->linkTo('job', 6),
BooleanColumn::name('email_verified_at')
->label('Email Verified')
->format()
->filterable(),
Column::name('name')
->defaultSort('asc')
->group('group1')
->searchable()
->hideable()
->filterable(),
Column::name('email')
->label('E-mail')
->group('group1')
->searchable()
->hideable(),
// ->filterable($this->email),
];
}
}
But in the browser, got this error:
Error
PHP 8.3.2-1+ubuntu22.04.1+deb.sury.org+1
10.43.0
Class "Mediconesystems\LivewireDatatables\NumberColumn" not found
Could you help me, please?
hey bro, if you have problems with my fork, then open issues on my repo https://github.com/arm092/livewire-datatables/issues
Hi, when i run composer require mediconesystems/livewire-datatables in a new Laravel 10 application i get errors:
Problem 1
You can also try re-running composer require with an explicit version constraint, e.g. "composer require mediconesystems/livewire-datatables:*" to figure out if any version is installable, or "composer require mediconesystems/livewire-datatables:^2.1" if you know which you need.