laravel-model-generator icon indicating copy to clipboard operation
laravel-model-generator copied to clipboard

properties

Open angujo opened this issue 7 years ago • 0 comments

Added columns as properties for model. Properties can be set via comments or directly in the model. artisan variable -c true sets the properties as comments while -c false sets them in model as variables. Assist in IDEs such as Phpstorm for intellisense.

* @property string $column1
* @property int $column2...

Or

/** @var ... */
public $column1;
/** @var ... */
public $column2...

angujo avatar Apr 16 '17 23:04 angujo