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');