MedicOneSystems / livewire-datatables

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

Error at enabled property exportable #480

Open demonkaen opened 2 years ago

demonkaen commented 2 years ago

when i used the datatable with my mode, and i enabled the propery exportable, i get an error with the property preventExport and showed in this line

$response = $kernel->handle(

    $request = Request::capture()

)->send();

this is the use of datatable at view <livewire:datatable model="App\Models\Sucursal" exportable :exclude="['created_at','updated_at','id']" :searchable="['description','address','phone','enabled']" />

Captura de pantalla de 2022-07-01 15-45-58

*Laravel9

o2magis commented 2 years ago

please try with this syntax.

<livewire:datatable
model="App\Models\Sucursal"
    exportable
    exclude="created_at,updated_at,id"
    searchable="description,address,phone,enabled"
/>
Sirloko commented 2 years ago

please try with this syntax.

<livewire:datatable
model="App\Models\Sucursal"
    exportable
    exclude="created_at,updated_at,id"
    searchable="description,address,phone,enabled"
/>

Not working, I also have a similar issue

Slobug commented 2 years ago

and this ?

<livewire:datatable
    model="App\Models\Sucursal" 
    exclude="created_at,updated_at,id" 
    searchable="description,address,phone,enabled" 
   exportable
/>

sure to have space between attribute ? test with exportable at end...

demonkaen commented 2 years ago

doesn't work :/