33 lines
645 B
PHP
33 lines
645 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ProjektInhaltsverzeichnis extends Model
|
|
{
|
|
protected $fillable = [
|
|
'projekte_id',
|
|
'name',
|
|
'ueberschrift_nicht_anzeigen',
|
|
'tabellen_id',
|
|
'textblock_id',
|
|
'sort',
|
|
'ordnungszahl',
|
|
'seite',
|
|
'neue_seite',
|
|
'ohne_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');
|
|
}
|
|
}
|