Create easy model from MySQL Databases

0.1.0 2016-10-11 10:07 UTC

This package is not auto-updated.

Last update: 2020-02-07 16:44:46 UTC


Build Status Total Downloads Built For Laravel Latest Stable Version Latest Unstable Version #MySQL To Model Create easy model from MySQL / MariaDB Databases. This packages helps you create models from existing database tables & columns


  • Specify which connection & database to use
  • Set namespace for generated models
  • Specify if there's timestamp in tables when migrating


composer require --dev shadowbane/mysqltomodel

Then, add line below to config/app.php:



php artisan mysqltomodel:make --help
  mysqltomodel:make [options] [--] <connection> <database>

  connection                   The Connection defined in config/database.php
  database                     Database Name

      --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

  Generate Models from existing databases

###Authors Adly Shadowbane ###License This project is licensed under the GNU General Public License v3.0