awkwardideas / ModelMaker by awkwardideas

MySQL to Laravel Generations
25
2
2
Package Data
Maintainer Username: awkwardideas
Maintainer Contact: chad@awkwardideas.com (Chad Haney)
Package Create Date: 2016-02-23
Package Last Update: 2016-11-01
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:02:43
Package Statistics
Total Downloads: 25
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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.