12/10
2016
Create easy model from MySQL Databases
Create easy model from MySQL / MariaDB Databases. This packages helps you create models from existing database tables & columns, (*2)
composer require --dev shadowbane/mysqltomodel
Then, add line below to config/app.php:, (*3)
Shadowbane\MySQLModel\MySQLModelServiceProvider::class,
php artisan mysqltomodel:make --help Usage: mysqltomodel:make [options] [--] <connection> <database> Arguments: connection The Connection defined in config/database.php database Database Name Options: --namespace[=NAMESPACE] Namespace to use. Defaulted using Connection Name -T, --timestamps Whether the generated model should use timestamp -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: Generate Models from existing databases
Adly Shadowbane, (*4)
This project is licensed under the GNU General Public License v3.0, (*5)