tomatophp/tomato-model-generator
Tomato Model Generator scaffolds Laravel Eloquent models, generating fillable fields, relationships, and migrations to speed up CRUD setup in the Tomato PHP admin panel and keep model code consistent across your Filament resources.
$fillable, $casts, and belongsTo/hasMany wiring filled in. That gives a PM a concrete cost comparison to put in front of a squad: hand-write the model layer per entity, or generate it and spend the saved hours on the logic that actually differentiates the product.Consider it when:
Look elsewhere when:
composer.json do not match your stack. A version mismatch is the most likely first-install failure — check before spending evaluation time.For executives: This is a developer-productivity tool for our Laravel admin tooling. It generates the boilerplate behind back-office screens — models, migrations, fillable fields, casts, and relationship wiring — so engineers spend their hours on business logic instead of repetitive setup. The decision it supports is build vs. generate for internal tools: with a queue of admin surfaces, it can take each one from days to hours and standardize how all of them are built. The cost is a dependency on a small, community-maintained package with no adoption history and an undocumented last release; the risk is that generated code still requires human review before it ships. The downside is bounded — the output is plain Laravel code we keep whether or not we keep the tool. Recommendation: timebox a one-entity pilot on a non-critical internal tool, measure it against the hand-built baseline, and standardize only if it wins.
For engineering leads:
$fillable, $casts, and belongsTo/hasMany relationships — from an interactive prompt flow, with publishable stubs and config for team conventions. It is not a runtime dependency: no request-path latency, no production failure mode, no uptime surface.make:model -mfsc rather than reaching for a dependency.src/Console and src/Generators. Budget for reading generated output line by line and for an ongoing review burden — generated code is a starting point, never a merge without reading.^1.0, verify PHP/Laravel/Filament constraints in composer.json first, and diff v1.0.0...v1.0.1 in src/ ourselves since the release notes document nothing. Generate into a scratch namespace (App\Models\Generated) and treat the tool as additive-only — never regenerate models that already carry hand-written casts, accessors, scopes, or traits.How can I help you explore Laravel packages today?