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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.