Back
YM
Yacine Merabet - Algiers - 2 months ago
project

How I structure large Laravel projects after 3 years of freelancing

After 20+ Laravel projects I've settled on a structure that works: - Feature-based folders inside app/ - Form Requests for all validation - Action classes for business logic - Repository pattern only when needed - Policies for authorization The biggest mistake I see is putting everything in controllers. Keep them thin.

2 comments
HT
Hamza Tebbal · 2 months ago

Would love a post on the Actions pattern. I always put logic in controllers and it gets messy.

0 likes
LC
Lina Cherif · 3 months ago

This matches how I structure my projects. Thin controllers is the most important rule.

0 likes

Login to comment