konto wip

This commit is contained in:
salam committed 2025-09-22 08:44:06 +02:00
1 parent e379bb5c94
commit 47edd31030
22 files changed
+219 -138

No files matched your search

-1
View File
@@ -13,6 +13,5 @@ class Gutachter extends Model
protected static function booted(): void
{
static::addGlobalScope(new KontoScope);
}
}
+3 -3
View File
@@ -25,14 +25,14 @@ class Konto extends Model
'konto_country',
'konto_phone',
'konto_uid_number',
'konto_agb_akzeptiert',
];
// protected static function booted(): void
// {
// static::addGlobalScope('konto', function (Builder $query) {
// if (auth()->hasUser()) {
// $query->where('konto_id', auth()->user()->konto_id);
// // or with a `team` relationship defined:
// // $query->whereBelongsTo(auth()->user()->team);
// $query->where('id', auth()->user()->konto_id);
// }
// });
// }