mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
created_by corrected
This commit is contained in:
@@ -36,6 +36,7 @@ class Lecturer extends Model implements HasMedia
|
||||
{
|
||||
static::creating(function ($model) {
|
||||
$model->created_by = auth()->id();
|
||||
$model->team_id = auth()->user()->current_team_id;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,8 @@ class Lecturer extends Resource
|
||||
->alwaysShow()
|
||||
->help('Markdown ist erlaubt. Du kannst Bilder aus dem Feld "Images" hier einfügen. Benutze das Link Symbol der Bilder für die Urls, nach dem du auf "Aktualisieren und Weiterarbeiten" geklickt hast.'),
|
||||
|
||||
BelongsTo::make('Team'),
|
||||
BelongsTo::make('Team')
|
||||
->exceptOnForms(),
|
||||
|
||||
BelongsTo::make(__('Created By'), 'createdBy', User::class)
|
||||
->exceptOnForms(),
|
||||
|
||||
Reference in New Issue
Block a user