Laravel fill attributes template for each models

As you know in Laravel we have important static eloquent methods for updating and creating models. For example



$user = User::find(123);

And many more too.

Is there a way through plugins or settings, that I can automatically put all the updatable columns? I use this regularly and it might speed up my work and for other developers that I know use it as well. We already have ide-helper:models by barryvdh laravel helper giving us all the attributes for the models, and we already have a protected $fillable; for each model that phpStorm could use to know which attributes needs to be filled.

Appreciate your help.

1 comment
Comment actions Permalink

Did you try Laravel plugins? I can see Laravel Idea plugin having some related functionality:

Without a plugin this could be possibly achievable via PhpStorm metadata, but this isn't implemented yet:


Please sign in to leave a comment.