shaqilabs/laravel-reversekit — reverse-engineered prompt
Reverse engineered prompt
Build me a Laravel package that lets me describe the JSON response I want and then generates the boring backend code for me.
I want to be able to run an Artisan command with either a JSON file, a raw JSON string, an API URL, an OpenAPI file, a Postman collection, or an interactive step by step mode. From that, it should create Laravel models, migrations, controllers, API resources, form requests, policies, factories, seeders, feature tests, and API routes.
It should figure out basic field types from the JSON values, like strings, numbers, booleans, dates, nullable fields, and nested objects. If the JSON has nested arrays or objects, it should detect relationships like has many and belongs to, then add the right foreign keys.
Please include a preview mode so I can see what would be generated before files are written, options to generate only certain pieces, support for modules and custom namespaces, and publishable config and stubs so developers can customize the output.
Want more depth? Deep Reverse