laravel-database-tools maintained by elph-studio
Elephant Studio :: Laravel database tools
- Faker - Renamed standard Laravel Factory. Factory pattern should be used to create Entities and Models, not fake data.
- Migration - Extended Laravel Migration disallowing
down()to reduce production risks. - Model
- Model - Extended Laravel Model with changes list allowing to get all Model changes even after saving.
- ModelTrait - Extended Laravel Model Trait for pre-built models
- Repository - Standard practice is to use Repositories instead of direct Model Query building in Controllers or Services. Repository holds
save()anddelete()methods as default, it also attached changes list toModelon everysave(). - Seeder
- Seeder - Extended Laravel Seeder with added
getDependencies()method allowing to order Seeders. - SeedersRunner - Application
DatabaseSeedershould extend this class to enable extended Seeders logic.
- Seeder - Extended Laravel Seeder with added