MedicOneSystems / MedicOneSystems/livewire-datatables

Error at enabled property exportable

Open
#480 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the livewire:datatable example using App\Models\Sucursal, exportable, and the listed searchable and excluded fields. Inspect the error involving preventExport and the request handling line, then confirm that enabling exportable no longer produces the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.