mishasneg
3 months ago

Share business logic between web app and api

Posted 3 months ago by mishasneg

Hey, I am building a web app with classic Laravel routers views controllers, and also building an API that mobile apps will consume. I am wondering what would be the best approach to share business logic between these two things?

One solution might me calling my own API from views, but it doesn't seem right.

Please sign in or create an account to participate in this conversation.