reliese/laravel — reverse-engineered prompt
Reverse engineered prompt
Build me a Laravel developer tool that can look at an existing database and automatically create clean Eloquent model classes for it.
I want it to read table names, columns, types, primary keys, foreign keys, and relationships, then generate models with useful typed properties and relationship methods so I don’t have to write them by hand. It should work from Artisan commands, including generating all models, just one table, or using a specific database connection or schema.
Please include a publishable config file so I can customize where models go and how they’re generated. I also want a safe workflow for regenerating models after the database changes, where my own custom model code won’t get overwritten, using separate base model files if needed.
Keep it focused as a Laravel package for local development, installed through Composer as a dev dependency. Support MySQL, PostgreSQL, and SQLite. Add tests and clear README instructions for installing, configuring, and running the commands.
Want more depth? Deep Reverse