Open hailwood opened 6 days ago
I don't think this is necessary, I believe we can do it with what we have already.
Xero::useModelStorage(Team::find(Auth::user()->currentTeamId)),
It would be recommended to put this in the middleware instead of the App service provider tho.
One of the developers at work has been using the beta version and ran into an interesting scenario - they wanted a per user storage, but not directly on the user.
In this case it was - user belongs to organisation, so we want the organisations xero credentials.
@JamesFreeman suggested