laravel-shift / factory-generator

MIT License
41 stars 20 forks source link

Refactor package to use `model:show` #31

Closed jasonmccreary closed 4 months ago

jasonmccreary commented 4 months ago

Given the support of Laravel 10 and the removal of DBAL in Laravel 11, this PR uses the core model:show command to gather attribute and relationship data for a model. This prevents this package from having to contain its own logic for gathering this data, as well as makes future compatibility easier.

This command also provides other information like hidden, fillable, and casts which could be used to improve the factory generation in the future.