protected static function teamGuard() { if (auth()->guest() || !auth()->user()->currentTeam) { throw new Exception('No authenticated user with selected team present.'); } }