A
A
Alexander2020-05-07 13:05:51
PHP
Alexander, 2020-05-07 13:05:51

Where to describe controllers in laravel modular structure?

The Laravel backend API project uses a modular approach - https://nwidart.com/laravel-modules/v6/introduction.
Also, in each of the modules, the Service - Repository pattern is applied.

Question: where is the best place to describe controllers, and where to describe routes? On the top layer or in the modules themselves?
Please tell me your opinion.

Thanks in advance for your replies!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question