Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Blueblau's avatar

Switch between being a team-member and a single user (without a team)

So, I'm building a service that facilitates the contact between customers (single users) and companies (teams).

There isn't a built-in solution for this, so for now it's kinda hacked with disabling middleware VerifyUserHasTeam and a couple of other things that doesn't fit my needs.

But now I would like, as a user on a company (team), to be able to change my current "state" to being a customer (single user) — like when you change company (team).

How would I store, and check, for this? I imagine setting some kind of value on the session, isCustomer or something to true.

...or how would I handle this?

0 likes
0 replies

Please or to participate in this conversation.