F
Filament15mo ago
harps

hasOne model relationship select list options

I have model like client->project where each project has a foreign key client_id linked to a client. How do I create select list options in the select list that reference clients ?
1 Reply
harps
harpsOP15mo ago
changing the model to belongsTo and using ->relationship() worked and seemed to make sense.

Did you find this page helpful?