Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Maged's avatar
Level 6

Best architecture for enterprise applications

My team is trying to decide the best architecture/patterns to follow building our next projects.

we come across :

1- Lucid [https://github.com/lucidarch/lucid]

2- Laravel modules [https://github.com/nWidart/laravel-modules]

what would be your choice ? and why ? pros and cons of each one

0 likes
2 replies
bugsysha's avatar

Just use the existing structure. A bunch of projects makes things too complicated with these types of approaches to the point of making projects very hard to update or hard to understand by new developers. Also, by using the approaches you've mentioned, developers are hoping that things will magically improve, but still, they end up with a problematic codebase.

My suggestion is to either let a very experienced developer lead this or hire some consultant.

martinbean's avatar

@maged “Enterprise” means nothing. I work in “enterprise” and we still stick to the default directory structure for the most part.

In my ~8 years of working with Laravel projects, the ones that fall apart are the ones you’ve described where someone’s thought their project is a special little snowflake and need to do things differently.

1 like

Please or to participate in this conversation.