Niisse
Niisse
FFilament
Created by Niisse on 10/23/2024 in #❓┊help
How to deal with a relationship's relationship in TextInputs?
My models are as follows: Order hasMany Products which each have a belongsTo ServiceFile. In a repeater, I'm listing my Order's Products, which works, but when I try to access fields on these Products' ServiceFiles, nothing shows up. My code:
Repeater::make('Products')
->relationship('Products')
->schema([
...
TextInput::make('serviceFile.name')
...
Repeater::make('Products')
->relationship('Products')
->schema([
...
TextInput::make('serviceFile.name')
...
Grateful for anyone who can point me in the right direction! Thanks.
1 replies