awkwardideas/modelmaker

MySQL to Laravel Generations
25 2
Install
composer require awkwardideas/modelmaker
PHP:>=5.6.4
License:MIT
Last Updated:Nov 1, 2016
Links: GitHub  ·  Packagist
Maintainer: awkwardideas

ModelMaker: MySQL to Laravel Model Generatoror

Latest Stable Version Total Downloads Latest Unstable Version License

Install Via Composer

composer require awkwardideas/modelmaker

Add to Laravel App Config

/*
 * Package Service Providers...
 */ 
AwkwardIdeas\ModelMaker\ModelMakerServiceProvider::class,
//

Commands via Artisan

Command line actions are done via artisan. The host, username, password from the .env file are used for making the connection.

php artisan modelmaker:clean

Removes all model maker files from the app/models folder

Options:

--force Bypass confirmations

php artisan modelmaker:generate

Create migration files using the database information in .env

Options:

--from= Database to migrate from --namespace= Defaults to App, but if provided will output with provided namespace --connection= If provided, adds connection reference to model. Use for multi database situations.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660