MorphTo with conditions #5127
Unanswered
rafaelsmith
asked this question in
Q&A
Replies: 0 comments
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.
-
I am working with field
MorphToand I try to make conditions for the resources.For example I have 4 resources:
Accounts
PaymentMethodCreditCard
PaymentMethodBankAccount
Transactions
Every Account can add as many Payment Methods as he wants. And in the transaction I work with
MorphToto select the Payment Method that the account selected.My problem starts when I try to create a transaction from Nova and get a list of all the Payment Methods in the db without any relation to the account.
My ideal idea was like that:
But of course it will not work, Someone has any idea how I can add conditions to the resource?
Beta Was this translation helpful? Give feedback.
All reactions