Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cotton9's avatar

BREAD/CRUD from Schema

We're already doing the work when we create the migration and relationships, so why do it again when creating the index/show/edit/add/delete templates/forms? I started developing a package to implement this functionality but figured it would probably be wise to contact the community in case I'm wasting my time.

There are a few CRUD generators, but nothing seems to use the existing migrations. Maybe there are others I'm missing? https://github.com/appzcoder/crud-generator https://github.com/zofe/rapyd-laravel

The purpose of this would be to a) build create/edit forms and b) generate browse/read/edit/add/delete templates with a single command (assuming the migrations and relationships already exist).

Generating from the database can't create a robust form/template, but the majority of the time what it produces will work fine, at least for early development.

Thoughts? Comments? Concerns?

0 likes
0 replies

Please or to participate in this conversation.