EmmanuelAyTuz / Views-BS4-Livewire-Datatable

Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4 and some languages.
16 stars 9 forks source link

BS4 views not working properly #31

Open AhmedMub opened 2 years ago

AhmedMub commented 2 years ago

I tried to use the BS4 views but it did not work as it should, what might be the reason that made it show like this?

image

EmmanuelAyTuz commented 2 years ago

Hi, @AhmedMub Did you publish the files?

With the command php artisan vendor:publish --tag="livewire-datatable-bs4"

If you have the original files by https://github.com/MedicOneSystems/livewire-datatables, please delete it and run the command

AhmedMub commented 2 years ago

Thanks, @EmmanuelAyTuz for your response, yes I did publish php artisan vendor:publish --tag="livewire-datatable-bs4", I think that Views-BS4-Livewire-Datatable doesn't work well with MedicOneSystems/livewire-datatables installed on the system, because I tried install Views-BS4-Livewire-Datatable after installing the requirements which is MedicOneSystems/livewire-datatables, but installtion faild with error Installation failed, reverting ./composer.json and ./composer.lock to their original content. (tested it on new Laravel livewire installation)

So I had to remove MedicOneSystems/livewire-datatables package via composer remove mediconesystems/livewire-datatables and then installed the Views-BS4-Livewire-Datatable successfully with publish command php artisan vendor:publish --tag="livewire-datatable-bs4"

Then I removed Views-BS4-Livewire-Datatable pakcage so I can install mediconesystems/livewire-datatables package without publishing mediconesystems/livewire-datatables views

EmmanuelAyTuz commented 2 years ago

Thanks, @EmmanuelAyTuz for your response, yes I did publish php artisan vendor:publish --tag="livewire-datatable-bs4", I think that Views-BS4-Livewire-Datatable doesn't work well with MedicOneSystems/livewire-datatables installed on the system, because I tried install Views-BS4-Livewire-Datatable after installing the requirements which is MedicOneSystems/livewire-datatables, but installtion faild with error Installation failed, reverting ./composer.json and ./composer.lock to their original content. (tested it on new Laravel livewire installation)

So I had to remove MedicOneSystems/livewire-datatables package via composer remove mediconesystems/livewire-datatables and then installed the Views-BS4-Livewire-Datatable successfully with publish command php artisan vendor:publish --tag="livewire-datatable-bs4"

Then I removed Views-BS4-Livewire-Datatable pakcage so I can install mediconesystems/livewire-datatables package without publishing mediconesystems/livewire-datatables views

Thanks for reviewing and reporting ⭐, I'll check ASAP the mediconesystems/livewire-datatables package

Could you give more info? Laravel Version Php Version And a screenshot cmd or full error