Skip to content

3.0: Merge pull request #41 from daverogers/add-config

Compare
Choose a tag to compare
@michael-mcmullen michael-mcmullen released this 07 Oct 12:20
· 29 commits to master since this release
80c9b8b
  • Establish a config file (modelfromtable.php) that devs can use to preset configurations (which can be overridden by command line) - downside is debug, all, etc have to be explicitly set to true in command line
  • Use app/Models directory if Laravel 8+ (#40)
  • New configuration to enable/disable timestamps (#13)
  • Generating model docblocks (#7)
  • New configuration to set delimiter (esp useful for tables with a lot of columns)
  • New configuration that sets overwrite to false by default, much safer for models that a dev has created and modified (force them to overwrite explicitly)
  • New configuration that sets $primaryKey - supports lambda to run database-specific query to obtain the primary key column
  • Expanded on previous $cast types, tried to make it a little smarter with regex
  • New configurations for whitelist and blacklist ("migrations" table included in config's blacklist by default, so devs have the choice to include it or not)
  • General stub cleanup