forked from laracademy/generators
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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+ (laracademy#40) - New configuration to enable/disable timestamps (laracademy#13) - Generating model docblocks (laracademy#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 regexp - 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
- Loading branch information
David Rogers
committed
Oct 1, 2020
1 parent
bd14fd3
commit 79e3354
Showing
4 changed files
with
219 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Laracademy Generators | ||
|-------------------------------------------------------------------------- | ||
| | ||
| A tool set that helps speed up the development process of a Laravel application. | ||
| | ||
| Documentation and support: | ||
| https://github.com/laracademy/generators | ||
| | ||
*/ | ||
|
||
'connection' => '', | ||
|
||
'namespace' => '', | ||
|
||
'table' => '', | ||
|
||
'primaryKey' => 'id', | ||
|
||
'folder' => '', | ||
|
||
'debug' => false, | ||
|
||
'all' => false, | ||
|
||
'singular' => false, | ||
|
||
'overwrite' => false, | ||
|
||
'blacklist' => ['migrations'], | ||
|
||
'whitelist' => [], | ||
|
||
'delimiter' => ', ' | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.