Where am I doing wrong in Relation Manager

I need all Transaction that stored by "customer_id" in CustomerResource.
// Transaction Model:
'customer_id',
'description',
'transaction_type',
'amount',
'balance',

// Customer Model
'name'
'mobile'
// Transaction Model:
'customer_id',
'description',
'transaction_type',
'amount',
'balance',

// Customer Model
'name'
'mobile'
Created a TransactionRelationManager with this command that's not work for me.
php artisan make:filament-relation-manager CustomerResource transactions customer_id
php artisan make:filament-relation-manager CustomerResource transactions customer_id
2 Replies
Patrick Boivin
Patrick Boivin11mo ago
Can you describe your issue? What is not working with your relation manager?
ronnytorresmtz
ronnytorresmtz11mo ago
Did you add the relationship between the Transaction Model and Customer Model (BelongsTo, HasMany)?