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

@@ -90,7 +90,8 @@ class CourseEvent extends Resource
BelongsTo::make(__('Venue'), 'venue', Venue::class)
->searchable(),
BelongsTo::make(__('Created By'), 'createdBy', User::class)->onlyOnIndex(),
BelongsTo::make(__('Created By'), 'createdBy', User::class)
->exceptOnForms(),
];
}