Can I display a relation in Forms like I can in Table?
In my CampaignResource I have a title
In the form a working Select
In the table a working
But this doesn't work in the form... I want to display only. Not allow change at a certain point,
Do I need to use a select and make it read only?
Model
Solution:Jump to solution
You can use a placeholder and provide the value yourself or use the Select and make it
->disabled()
2 Replies
Solution
You can use a placeholder and provide the value yourself or use the Select and make it
->disabled()
Placeholder::make('person_name')
->content(fn (Campaign $record): string => $record->persona->name),
So easy thanks