How to create a requiredIf condition in a relationship?

I would like to do this: TextInput::make('price') ->requiredIf('store.type_tax', TaxType::Product->value) ->numeric() ->inputMode('decimal') ->step(0.01) ->label('Price') ->columnSpan(['md' => 6]), How can I retrieve the 'type_tax' from the 'store' relationship and make this field required based on that value?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server