konto wip
This commit is contained in:
1 parent
e379bb5c94
commit
47edd31030
22 files changed
+219
-138
No files matched your search
@@ -13,6 +13,5 @@ class Gutachter extends Model
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new KontoScope);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user