inhaltsangabe wip

This commit is contained in:
salam committed 2025-10-19 12:26:48 +02:00
1 parent 8ccc4a3c20
commit 3a35ccd69d
34 files changed
+281 -236

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ class Gutachter extends Model
'logo',
'logo_align',
'referenz_formatting',
'digitale_signatur_stempel',
'logo_anzeigen',
'text_anzeigen',
];
+10 -3
View File
@@ -8,14 +8,21 @@ class Inhaltsverzeichnis extends Model
{
protected $fillable = [
'name',
'textblock_kennung_id',
'ueberschrift_anzeigen',
'tabellen_id',
'textblock_id',
'sort',
'ordnungszahl',
'seite',
];
public function textblock_kennung()
public function textblock()
{
return $this->hasMany(TextblockKennung::class, 'id', 'textblock_kennung_id');
return $this->hasMany(Textblock::class, 'id', 'textblock_id');
}
public function tabellen()
{
return $this->hasMany(Tabellen::class, 'id', 'tabellen_id');
}
}
-5
View File
@@ -18,9 +18,4 @@ class KontoTextblock extends Model
{
static::addGlobalScope(new KontoScope);
}
public function textblock_kennung()
{
return $this->hasMany(TextblockKennung::class, 'id', 'textblock_kennung_id');
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tabellen extends Model
{
//
}
-6
View File
@@ -9,12 +9,6 @@ class Textblock extends Model
protected $fillable = [
'name',
'beschreibung',
'textblock_kennung_id',
'textblock',
];
public function textblock_kennung()
{
return $this->hasMany(TextblockKennung::class, 'id');
}
}
-12
View File
@@ -1,12 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TextblockKennung extends Model
{
protected $fillable = [
'name',
];
}