laravel-quickbooks-client icon indicating copy to clipboard operation
laravel-quickbooks-client copied to clipboard

Use a different model for tokens

Open atymic opened this issue 4 years ago • 9 comments

For example, save auth against a Company model rather than a user, allowing multiple users to access the same connection.

Will fork and PR.

atymic avatar Mar 29 '20 22:03 atymic

I need it too...

Dozorov avatar Aug 21 '20 20:08 Dozorov

@atymic Did you get anywhere on that PR?

jimmypuckett avatar Aug 21 '20 20:08 jimmypuckett

I took your module as an example of functionality, I want to implement the connection of multiple users in turn with different accounts.

ViktorIvanisenko avatar Oct 08 '20 10:10 ViktorIvanisenko

I ended up just taking the quickbooks token class and not using the package. I can PR if you'd like, but it would be a breaking release since it's very different to how it work rn.

atymic avatar Oct 08 '20 21:10 atymic

I ended up just taking the quickbooks token class and not using the package. I can PR if you'd like, but it would be a breaking release since it's very different to how it work rn.

I also redesigned the token class and the client class. I take access to QuickBooks from the company tables.

ViktorIvanisenko avatar Oct 09 '20 09:10 ViktorIvanisenko

Yep, that's how I did it.

atymic avatar Oct 10 '20 01:10 atymic

Yep, that's how I did it.

When I'm done, I'll show you the code.

ViktorIvanisenko avatar Oct 12 '20 11:10 ViktorIvanisenko

@ViktorIvanisenko Would love to see an example of how you did this. I think I need this approach too.

hyphen81 avatar Aug 07 '21 11:08 hyphen81

This sounds like a great potential new feature. Example code is welcome.

ssfinney avatar Sep 10 '21 14:09 ssfinney