$data * @return array */ protected function mutateFormDataBeforeCreate(array $data): array { $data['created_by'] = auth()->id(); return $data; } }