How to implement Middleware structure design

Posted 1 year ago by beerbuddha

So Laravel has it's own middleware which you can use for validations for example.

My coworker insist that "business logic" be put in the middleware and the API logic becomes the microservice then VUE/blade can be the front-end presentation.

However - with the ease of Laravel - I've put some logic inside controllers.

Is the same middleware that my coworker is talking about the same middleware found in Laravel?

If not - then where / how would you structure the separation of:

Presentation -> middleware -> microservice

inside Laravel?

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

Reply to

Use Markdown with GitHub-flavored code blocks.