Files
nutzwerte_fi4/app/Models/ProjektInhaltsverzeichnis.php
T
2025-10-22 07:05:52 +02:00

34 lines
650 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProjektInhaltsverzeichnis extends Model
{
protected $fillable = [
'projekte_id',
'name',
'ueberschrift_anzeigen',
'tabellen_id',
'textblock_id',
'sort',
'ordnungszahl',
'part',
'seite',
'neue_seite',
'seitenzahl_anzeige',
'textblock',
];
public function textblock()
{
return $this->hasMany(Textblock::class, 'id', 'textblock_id');
}
public function tabellen()
{
return $this->hasMany(Tabellen::class, 'id', 'tabellen_id');
}
}