Closed HenkPoley closed 4 years ago
It's a good idea, I tried to optimize it recently
In the latest tag V1.0.3, I have optimze the ModelBusiness
by Doctrine Types. Now the properties looks like
/**
* @property bigint $id
* @property string $name
* @property string $email
* @property string $email_verified_at
* @property string $password
* @property string $remember_token
* @property datetime $created_at
* @property datetime $updated_at
*/
As we all know, the datetime
,bigint
type is not php types. But it doesn't affect understanding
Nice, I first thought that vimeo/psalm (one of my main use cases) doesn't understand doctrine @property
's, but it does 👍
I understand that removing the docblock and then running
barryvdh/laravel-ide-helper
'sphp artisan ide-helper:models -W
will write in that annotation data. But it's sort of the point why you want to use a generator like this.(to then maybe chain it with mpociot/laravel-test-factory-helper)