hasUser()) { // $query->where('konto_id', auth()->user()->konto_id); // // or with a `team` relationship defined: // // $query->whereBelongsTo(auth()->user()->team); // } // }); // } }