textblock_id > 0) { $textblock = Textblock::where('id', $inhalt->textblock_id)->pluck('textblock')->first(); } ProjektInhaltsverzeichnis::updateOrCreate( [ 'projekte_id' => $record->id, 'name' => $inhalt->name, ], [ 'sort' => $inhalt->sort, 'ordnungszahl' => $inhalt->ordnungszahl, 'name' => $inhalt->name, 'ueberschrift_nicht_anzeigen' => $inhalt->ueberschrift_nicht_anzeigen, 'seite' => $inhalt->seite, 'tabellen_id' => $inhalt->tabellen_id, 'textblock_id' => $inhalt->textblock_id, 'textblock' => $textblock, ]); } } }