standards wip

This commit is contained in:
salam committed 2025-10-10 13:33:29 +02:00
1 parent 4f865b52a6
commit 7eaa8c0da2
32 files changed
+326 -98

No files matched your search

+7 -1
View File
@@ -7,9 +7,15 @@ use Illuminate\Database\Eloquent\Model;
class Inhaltsverzeichnis extends Model
{
protected $fillable = [
'name',
'textblock_kennung_id',
'sort',
'ordnungszahl',
'text',
'seite',
];
public function textblock_kennung()
{
return $this->hasOne(TextblockKennung::class, 'id');
}
}
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProjektInhaltsverzeichnis extends Model
{
protected $fillable = [
'name',
'textblock',
'sort',
'ordnungszahl',
'projekte_id',
'textblock_kennung_id',
'seite',
];
}
+5
View File
@@ -47,4 +47,9 @@ class Projekte extends Model
{
return $this->hasMany(ProjektMethode::class);
}
public function projekt_inhaltsverzeichnis()
{
return $this->hasMany(ProjektInhaltsverzeichnis::class);
}
}
+7 -1
View File
@@ -7,8 +7,14 @@ use Illuminate\Database\Eloquent\Model;
class Textblock extends Model
{
protected $fillable = [
'kennung',
'name',
'beschreibung',
'textblock_kennung_id',
'textblock',
];
public function textblock_kennung()
{
return $this->hasMany(TextblockKennung::class, 'id');
}
}
+12
View File
@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TextblockKennung extends Model
{
protected $fillable = [
'name',
];
}