21 lines
553 B
PHP
21 lines
553 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Konto extends Model
|
|
{
|
|
// 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);
|
|
// }
|
|
// });
|
|
// }
|
|
}
|