vkovic / laravel-commando

Collection of handy Laravel artisan commands that most projects needs
MIT License
60 stars 10 forks source link

Model diagnostics report #1

Open vkovic opened 5 years ago

vkovic commented 5 years ago

I noticed that when using command like model:fields, sometimes Guarded and Fillable contain the same field, which can be considered as a problem.

Also for example during development, models gets changed a lot and we often forgot to change model accordingly (fillable, guarded, casts) so it'll be cool if this command can warn us about this kind of things.

And one more thing it could warn us about is that model exist and there is no related table.


It'll be good to have command e.g. model:diag that will go through all models or given model and make some kind of report based on what i wrote above - also someone could suggest some more cool stuff here ...