ngmy / laravel-ide-helper-eloquent
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.
Package info
github.com/ngmy/laravel-ide-helper-eloquent
pkg:composer/ngmy/laravel-ide-helper-eloquent
Requires
- php: ^8.2
- laravel/framework: ^11.15 || ^12.0
- nikic/php-parser: ^5.3
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- ergebnis/composer-normalize: ^2.45
- larastan/larastan: ^3.0
This package is auto-updated.
Last update: 2026-02-22 14:25:17 UTC
README
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.
Features
- 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.
Motivation
Installation
composer require --dev ngmy/laravel-ide-helper-eloquent
Usage
First, generate the IDE Helper files using Laravel IDE Helper:
php artisan ide-helper:generate php artisan ide-helper:models -N
Then, generate new IDE Helper files and update existing IDE Helper files using Laravel IDE Helper Eloquent:
php artisan ide-helper:eloquent-helpers
Changelog
Please see the changelog.
License
Laravel IDE Helper Eloquent is open-sourced software licensed under the MIT license.