You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I am satisfied with the approach. But we are using smarter IDEs for development, and I need still to add model properties to the doc block for the type hinting while assigning or accessing model attributes as:
@property string $created_at
@property Date $updated_at
@property DateTime $deleted_at
with in the model class. If it is possible and easy to go, please add this feature with in class doc block.
Still searching for fair model generation modules as Yii has.
PS: I am using PHPStrom.
The text was updated successfully, but these errors were encountered:
daverogers
pushed a commit
to daverogers/generators
that referenced
this issue
Oct 1, 2020
- 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
Currently, I am satisfied with the approach. But we are using smarter IDEs for development, and I need still to add model properties to the doc block for the type hinting while assigning or accessing model attributes as:
with in the model class. If it is possible and easy to go, please add this feature with in class doc block.
Still searching for fair model generation modules as Yii has.
PS: I am using PHPStrom.
The text was updated successfully, but these errors were encountered: