exceptOnForms for createdBy

This commit is contained in:
Benjamin Takats
2022-12-15 14:57:28 +01:00
parent 9e43f166a3
commit 7be1194e43
15 changed files with 36 additions and 21 deletions

View File

@@ -125,7 +125,8 @@ class BookCase extends Resource
MorphMany::make(__('Comments'), 'comments', Comment::class),
BelongsTo::make(__('Created By'), 'createdBy', User::class)->onlyOnIndex(),
BelongsTo::make(__('Created By'), 'createdBy', User::class)
->exceptOnForms(),
];
}