ngmy / laravel-ide-helper-eloquent
Laravel IDE Helper Eloquent generates an IDE helper file to enable autocompletion for QueryBuilder methods on models in IDEs/editors that do not support @mixin.
Installs: 7 500
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
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-19 06:22:51 UTC
README
Laravel IDE Helper Eloquent generates the _ide_helper_eloquent.php file by replacing Eloquent with Illuminate\Database\Eloquent\Model
in the standard _ide_helper.php file generated by Laravel IDE Helper.
It enables autocompletion for QueryBuilder methods like find() and create() on models in IDEs/editors that do not
support @mixin, such as the free version of Intelephense.
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, enhance the Eloquent autocompletion using Laravel IDE Helper Eloquent:
php artisan ide-helper:eloquent-enhance
Changelog
Please see the changelog.
License
Laravel IDE Helper Eloquent is open-sourced software licensed under the MIT license.