34 lines
694 B
PHP
34 lines
694 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ProjektInhaltsverzeichnis extends Model
|
|
{
|
|
protected $fillable = [
|
|
'projekte_id',
|
|
'name',
|
|
'ueberschrift_verbergen',
|
|
'inhaltselement_id',
|
|
'sort',
|
|
'ordnungszahl',
|
|
'part',
|
|
'seite',
|
|
'neue_seite',
|
|
'textblock_name',
|
|
'textblock',
|
|
'textblock2',
|
|
];
|
|
|
|
public function inhaltselement()
|
|
{
|
|
return $this->hasOne(Inhaltselement::class, 'id', 'inhaltselement_id');
|
|
}
|
|
|
|
public function inhaltsverzeichnis()
|
|
{
|
|
return $this->hasOne(Inhaltsverzeichnis::class, 'id', 'inhaltsverzeichnis_id');
|
|
}
|
|
}
|