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

+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);
}
}