Skip to content

Quick fix details screen issue when using belongs to relation. e,g 'role.id'#199

Open
haider00125 wants to merge 1 commit intoepartment:masterfrom
haider00125:fix/belongs-to-display-issue
Open

Quick fix details screen issue when using belongs to relation. e,g 'role.id'#199
haider00125 wants to merge 1 commit intoepartment:masterfrom
haider00125:fix/belongs-to-display-issue

Conversation

@haider00125
Copy link
Copy Markdown

@haider00125 haider00125 commented Jan 11, 2022

Consider the following code:

BelongsTo::make('Group', 'group', Group::class),
NovaDependencyContainer::make([ Boolean::make('Enable', 'enable'), ])->dependsOn('group.id', [5, 10, 15]),

This code works fin on Form. But won't work fine on details screen. The "Enable" boolean field is not showing on details screen.

This PR add a quick fix for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant