How can I populate table based on user id?

For example, in my table I have 3 rows a,b,user_id. I want to be able to fill the table with rows that have the same user_id?
Solution
Fix:
->query(Attribute::where('user_id', $user->id))
Was this page helpful?