Laravel
Laravel Action Pattern
Pull business logic out of controllers and models into small, single-purpose Action classes with one handle() method — one class per operation, called from anywhere.
I build web apps with Laravel and Vue.
This is where I write down what I learn — patterns that work, mistakes worth avoiding, things I wish I'd found earlier.
Pull business logic out of controllers and models into small, single-purpose Action classes with one handle() method — one class per operation, called from anywhere.
Use glob and loadMigrationsFrom in your Service Provider to partition migrations into module subfolders — requiring no changes to Artisan or any configuration.
Use PHP 8.1 backed enums with FilamentPHP's HasLabel, HasColor, and HasIcon interfaces to automatically render badges, colors, and icons across your admin panel — defined once, used everywhere.