MedicOneSystems / MedicOneSystems/livewire-datatables
Pass relationship column to callback
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Hello!, when i try pass a relationship variable in a callback i get an error (example roles.name), but in a simple column works fine
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the report. Reproduce the callback case with roles.name and compare it with the working simple-column case; trace where relationship columns are passed to callbacks, and consider the issue done when the relationship value no longer errors and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100