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