33 lines
653 B
PHP
33 lines
653 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Inhaltsverzeichnis extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'ueberschrift_verbergen',
|
|
'inhaltselement_id',
|
|
'textblock_id',
|
|
'sort',
|
|
'ordnungszahl',
|
|
'seite',
|
|
'neue_seite',
|
|
'hilfe_titel',
|
|
'hilfe_description',
|
|
'hilfe_image',
|
|
];
|
|
|
|
public function textblock()
|
|
{
|
|
return $this->hasMany(Textblock::class, 'id', 'textblock_id');
|
|
}
|
|
|
|
public function inhaltselement()
|
|
{
|
|
return $this->hasMany(Inhaltselement::class, 'id', 'inhaltselement_id');
|
|
}
|
|
}
|