How to bind the cart to a specific user session
masterBy default, the cart uses a single session key. To manage different carts for different users (e.g., in a multi-user environment), you must bind the cart to a unique identifier (like a User ID) using \Cart::session($sessionKey) before calling any other cart methods. This ensures the cart knows which user's data to manipulate.
Example:
\Cart::session($userId);