Open martianatwork opened 4 years ago
@martianatwork Thanks for the bug. Which relationships are you using when you see this happen?
i end up with same issue,
i use as:
BelongsTo::make(__('Profile'), 'profile', Profile::class)
->inline()
->requireChild()
->hideFromIndex(),
does not apply readonly fields in profile resource
class Profile extends Resource
{
...
public function fields(Request $request)
{
return [
ID::make()->sortable()->hideFromIndex(),
Text::make(__('ID Number'), 'id_number')
->rules('required')->readonly(),
];
}
...
any solution to this problem ?
If a child has a readonly parameter set, the create & update form will allow the field to be editable