elph-studio/laravel-database-tools

Extended Laravel Database configuration

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/elph-studio/laravel-database-tools

v0.1.6 2025-12-15 13:41 UTC

This package is auto-updated.

Last update: 2025-12-15 13:42:05 UTC


README

Elephant 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() and delete() methods as default, it also attached changes list to Model on every save().
  • Seeder
    • Seeder - Extended Laravel Seeder with added getDependencies() method allowing to order Seeders.
    • SeedersRunner - Application DatabaseSeeder should extend this class to enable extended Seeders logic.