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 have a query with a where condition that I want to return all Account for a particular user when the User is selected using the id. The AccountTable table shows but when I try exporting the table I get the error message Attempt to read property "id" on null
This is my query
public function datasource(): Builder
{
return Account::query()->where('user_id', '=', request()->user->id)->select();
}
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
-
I have a query with a where condition that I want to return all
Account
for a particular user when the User is selected using theid
. TheAccountTable
table shows but when I try exporting the table I get the error messageAttempt to read property "id" on null
This is my query
Beta Was this translation helpful? Give feedback.
All reactions