Laravel generates models, views and controllers from a database or migration script

I'm new to Laravel 4. I wanted to know if it's possible to create models, views and controllers from an existing database? i googled and found

https://github.com/JeffreyWay/Laravel-4-Generators

But it allows you to generate a migration script, model, views and controllers by providing the name of the resource where, as I want, the reverse engineering is the same in which, on the command line, I want to create models, views and controllers from an existing database.

+1
source share
3 answers
php artisan generate:model dbtablename

. generate:resource.

php artisan generate:resource command

Laravel-4 . .

Laravel 5, Laravel 5 Extended Generators.

+3

Laravel 4 Migrations Generator : Automatically generates your migrations from an existing database schema. You will also find there a solution for Laravel-5.

At packalyst.com you will find a way to automatically create a model.

+2
source

Source: https://habr.com/ru/post/1539557/


All Articles