Santosh Achari
Santosh Achari

Reputation: 3006

Starting with existing database on Laravel 5

I have been enjoying working on Laravel for a while now, and am planning to move a fairly large project to Laravel 5.

The new project has fairly large database with numerous tables, and it would take considerable amount of time build migrations, models and controllers individually.

Has anybody worked on this before? What is the best way to go about it?

I have used this great extension to generate migrations as of now - but still for a 200+ tables, it would take quite a long time to do the rest.

Upvotes: 7

Views: 14474

Answers (3)

Varsha Prabhakar
Varsha Prabhakar

Reputation: 316

Try this one: https://github.com/reliese/laravel

Reliese Laravel is a collection of Laravel Components which aim is to help the development process of Laravel applications by providing some convenient code-generation capabilities.

Upvotes: 6

Bonn
Bonn

Reputation: 63

How about this: http://packalyst.com/packages/package/ignasbernotas/laravel-model-generator

Model generator Laravel 5 model generator for an existing schema.

It plugs into your existing database and generates model class files based on the existing tables.

Upvotes: 4

Bogdan
Bogdan

Reputation: 44526

For migrating models and controllers just use artisan commands, you can't get around it any easier than that. For the migrations I can suggest trying to use the following package:

Laravel Database Exporter

It will export your existing DB schemas as Laravel migrations. My suggestion is based on the assumption that you are using MySQL as your RDBMS, because the package I suggested only works with that.

Upvotes: 0

Related Questions