KontoTextblocksTable

This commit is contained in:
salam committed 2025-10-12 11:51:33 +02:00
1 parent ae828ab8f5
commit eaed59cceb
19 files changed
+532 -97

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
namespace App\Models;
use App\Models\Scopes\KontoScope;
use Illuminate\Database\Eloquent\Model;
class KontoTextblock extends Model
@@ -13,6 +14,11 @@ class KontoTextblock extends Model
'textblock',
];
protected static function booted(): void
{
static::addGlobalScope(new KontoScope);
}
public function textblock_kennung()
{
return $this->hasMany(TextblockKennung::class, 'id');
+1 -1
View File
@@ -7,11 +7,11 @@ use Illuminate\Database\Eloquent\Model;
class ProjektInhaltsverzeichnis extends Model
{
protected $fillable = [
'projekte_id',
'name',
'textblock',
'sort',
'ordnungszahl',
'projekte_id',
'textblock_kennung_id',
'seite',
];
+11
View File
@@ -2,6 +2,7 @@
namespace App\Models;
use App\Models\Scopes\KontoScope;
use Illuminate\Database\Eloquent\Model;
class Projekte extends Model
@@ -18,6 +19,11 @@ class Projekte extends Model
'status',
];
protected static function booted(): void
{
static::addGlobalScope(new KontoScope);
}
public function orientierung_zu_abschlaeges()
{
return $this->hasMany(OrientierungZuAbschlaege::class);
@@ -52,4 +58,9 @@ class Projekte extends Model
{
return $this->hasMany(ProjektInhaltsverzeichnis::class);
}
public function konto_textblocks()
{
return $this->hasMany(KontoTextblock::class);
}
}
+1
View File
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Raeumealle extends Model
{
protected $fillable = [
'projekte_id',
'methode_id',
'top_nummer',
'geschoss',