Laravel IDE Helper Eloquent generates new IDE Helper files and updates the existing standard IDE Helper files generated by Laravel IDE Helper to enhance autocompletion for Eloquent.
- Enables autocompletion for QueryBuilder methods like
find()andcreate()on models in IDEs/editors that do not support@mixin, such as the free version of Intelephense. - Enables autocompletion for the
scoped()method provided by mpyw/laravel-local-class-scope.
composer require --dev ngmy/laravel-ide-helper-eloquentFirst, generate the IDE Helper files using Laravel IDE Helper:
php artisan ide-helper:generate
php artisan ide-helper:models -NThen, generate new IDE Helper files and update existing IDE Helper files using Laravel IDE Helper Eloquent:
php artisan ide-helper:eloquent-helpersPlease see the changelog.
Laravel IDE Helper Eloquent is open-sourced software licensed under the MIT license.