wip
This commit is contained in:
1 parent
3072012c07
commit
2cb88a4290
12 files changed
+170
-156
No files matched your search
+11
-1
@@ -2,9 +2,19 @@
|
||||
|
||||
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);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user