So I am using a Spatie package for roles and permissions.
I am using a trait on my User model and a trait HasRoles.
I moved my models to "App\Models" and used following commands:
php artisan clear-compiled
php artisan ide-helper:generate
php artisan optimize
php artisan ide-helper:models "App\Models\User" -N
It gives me autocompletion for, e.g. User::create but unfortunately it doesn't give me autocompletion for
$user->assignRole() which is located in the trait.
It shouldn't have to autocomplete existing methods? phpstorm can figure those out with ide-helper.
@kickthemooon have you fixed this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.
Most helpful comment
@kickthemooon have you fixed this?