Access custom attribute with Builder ( without ->get() ) #753
Unanswered
BenOussama180
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You need add in addColumn too public function addColumns(): PowerGridEloquent
{
return PowerGrid::eloquent()
->addColumn('is_on_order') |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
so basically im using powergrid tables livewire , in the datasource it expects a Builder type :
Datasource :
in my Link Model :
so basically i want to check if a link has been ordered by the current auth customer or no to use it inside my BooleanFilter :
the issue is i can not access the "is_on_order" unless i perform a ->get() on my datasource which decrease performance of filtering alot , is there any workaround for this ?
Beta Was this translation helpful? Give feedback.
All reactions