You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using PowerGrid 6.5.1 with Livewire 3, and I've run into a frustrating issue where action buttons do not render at all when using my User model as the datasource.
🔧 Setup
I have a PowerGrid table that uses an Eloquent model (App\Models\User) as its datasource:
actions() is definitely called (confirmed via logging)
$row is a valid Eloquent model (App\Models\User)
But nothing is rendered in the action column – not even static HTML, raw text, or placeholder content
When using other models or raw database tables (e.g. roles, permissions), buttons render without issues
📌 Important Note
This issue occurs only when using the User model as the datasource.
✅ Using the exact same setup and component logic with other Eloquent models works perfectly — action buttons are displayed as expected.
This suggests the problem may be related to something in the User model that causes PowerGrid to silently skip rendering the action content. The model does include traits like HasRoles, soft deletes, accessors, and custom casts – but nothing obviously problematic.
✅ What I tried
Removing traits like HasRoles, Notifiable, SoftDeletes from the model
Removing attribute accessors & custom casts
Casting $row to an array in actions() (via (array) $row)
Using raw HTML in the slot(), with and without wrapping tags
Returning plain DB::table(...)->get() results instead of the model
Logging output from actions() — confirms it's called with valid data
Declaring Column::action(...) properly
Verified styles and scripts (@powerGridScripts, @livewireScripts, etc.) are included
🔍 Findings
PowerGrid skips rendering the entire action cell — but only when using this specific model. Even static content in slot() is not rendered.
There is no error, no exception, and no visible trace in the DOM — just an empty column.
❓ Question
Is it possible that PowerGrid silently skips action rendering based on something internal to the model instance — such as traits, internal casts, or non-serializable properties?
Are there any known limitations when using more complex Eloquent models as the datasource for a PowerGrid table?
Any insight or workaround would be greatly appreciated 🙏
Thanks again for the amazing tool — PowerGrid has been great to work with so far!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there 👋
I'm currently using PowerGrid 6.5.1 with Livewire 3, and I've run into a frustrating issue where action buttons do not render at all when using my
User
model as the datasource.🔧 Setup
I have a PowerGrid table that uses an Eloquent model (
App\Models\User
) as its datasource:My
columns()
andactions()
methods look like this:🐛 Problem
actions()
is definitely called (confirmed via logging)$row
is a valid Eloquent model (App\Models\User
)📌 Important Note
This issue occurs only when using the
User
model as the datasource.✅ Using the exact same setup and component logic with other Eloquent models works perfectly — action buttons are displayed as expected.
This suggests the problem may be related to something in the
User
model that causes PowerGrid to silently skip rendering the action content. The model does include traits likeHasRoles
, soft deletes, accessors, and custom casts – but nothing obviously problematic.✅ What I tried
HasRoles
,Notifiable
,SoftDeletes
from the model$row
to an array inactions()
(via(array) $row
)slot()
, with and without wrapping tagsDB::table(...)->get()
results instead of the modelactions()
— confirms it's called with valid dataColumn::action(...)
properly@powerGridScripts
,@livewireScripts
, etc.) are included🔍 Findings
PowerGrid skips rendering the entire action cell — but only when using this specific model. Even static content in
slot()
is not rendered.There is no error, no exception, and no visible trace in the DOM — just an empty column.
❓ Question
Is it possible that PowerGrid silently skips action rendering based on something internal to the model instance — such as traits, internal casts, or non-serializable properties?
Are there any known limitations when using more complex Eloquent models as the datasource for a PowerGrid table?
Any insight or workaround would be greatly appreciated 🙏
Thanks again for the amazing tool — PowerGrid has been great to work with so far!
Beta Was this translation helpful? Give feedback.
All reactions