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