laraditz/action
Define single-purpose Action classes for Laravel and Lumen to keep code DRY. Generate actions via artisan, pass data through constructor properties, and execute with handle() or a convenient static run() method. Includes a data() helper for all properties.
UpdateUserProfile, GenerateReport)."This package lets us write cleaner, reusable code for complex workflows—like creating orders or processing payments—without bloating controllers. It’s like giving our backend team Lego blocks for business logic: they snap together quickly, reduce bugs, and make the codebase easier to maintain. For example, instead of scattering User::create() calls across 10 controllers, we’d encapsulate it in a single CreateUser action. This cuts development time by ~30% for repetitive tasks and makes onboarding new devs faster. The MIT license and Laravel-native design mean zero vendor lock-in."
*"This solves the ‘fat controller’ problem by moving logic into self-contained actions with typed properties and a handle() method. Key benefits:
CreatePost can test Post::create() in isolation).composer require and make:action—no new paradigms.Tradeoff: Slightly more boilerplate for trivial cases, but pays off for any logic >5 lines. Start with high-value workflows (e.g., checkout, user auth) and expand."*
How can I help you explore Laravel packages today?