Problem using "relationship" in Lists and Views #1124
-
Hello, I am trying to display a column in the list where the wallet addresses associated with a user appear. In the User model, I have: public function wallets()
nd in the wallets table, I can have multiple wallets assigned to the same user_id. I want to display a column in the user list where those wallets appear. I’m trying with this, but I only see empty content:
I think I’m misunderstanding something about the relationships, in fact, the relations_count isn’t working well for me either. Could it be that I’m missing something? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
@infiniteroles does your If it's a simple text column, just do Let me know if that helps 🙏 |
Beta Was this translation helpful? Give feedback.
Did you define the column just as
CRUD::column('wallets')->attribute('address')
and let Backpack guess the other stuff?Can you go to
vendor/backpack/crud/src/resources/views/crud/columns/select_multiple.blade.php
and add add($column['value'])
before the@endphp
tag ?Cheers