*/ protected function casts(): array { return [ 'ueberschrift_anzeigen' => 'boolean', 'seitenzahl_anzeige' => 'boolean', ]; } public function textblock() { return $this->hasMany(Textblock::class, 'id', 'textblock_id'); } public function tabellen() { return $this->hasMany(Tabellen::class, 'id', 'tabellen_id'); } }