jeudi 24 novembre 2016

Laravel 5.3 Scaffold CRUD from existing database

i have an existing database and all my models are defined already. I would like to scaffold Controllers and Views because it's really time consuming.

i found this which sound good: infyom They say in the documentation that you can use it from an existing database but any command keeps asking me for fields, (as it is trying to create a model from scratch), what i want to to use my existing models.

I found the "scaffold from table" option in the documentation:

php artisan infyom:scaffold Equipement --fromTable --tableName=Equipement

But it says:[ErrorException] Undefined index: Equipement i guess it did not find my existing model. I was wondering, what do they call datatable anyway ? I can see in their config file they have a folder for that, maybe i should define my models there somehow ?

Thanks for anyone who can help on that. (or providing an alternative solution for scaffolding from existing database/models)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire