konto optionen
This commit is contained in:
1 parent
47edd31030
commit
e5ea920579
25 files changed
+309
-178
No files matched your search
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
|
||||
class Konto extends Model
|
||||
{
|
||||
@@ -26,14 +26,11 @@ class Konto extends Model
|
||||
'konto_phone',
|
||||
'konto_uid_number',
|
||||
'konto_agb_akzeptiert',
|
||||
'konto_option_id',
|
||||
];
|
||||
|
||||
// protected static function booted(): void
|
||||
// {
|
||||
// static::addGlobalScope('konto', function (Builder $query) {
|
||||
// if (auth()->hasUser()) {
|
||||
// $query->where('id', auth()->user()->konto_id);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
public function konto_option(): HasOne
|
||||
{
|
||||
return $this->hasOne(KontoOption::class, 'id', 'konto_option_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user