ngmy / laravel-ide-helper-eloquent
Laravel IDE Helper Eloquent generates a stub file to enable autocompletion for QueryBuilder methods on models in IDEs/editors that do not support @mixin.
Requires
- php: ^8.2
- laravel/framework: ^11.15
- 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: 2025-02-21 17:36:10 UTC
README
Laravel IDE Helper Eloquent generates an Eloquent stub file that renames the Eloquent
to Illuminate\Database\Eloquent\Model
in the _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.
Motivation
bmewburn/vscode-intelephense#708
Installation
composer require --dev ngmy/laravel-ide-helper-eloquent
Usage
First, generate the IDE Helper file using Laravel IDE Helper:
php artisan ide-helper:generate
Then, generate the Eloquent stub file using Laravel IDE Helper Eloquent:
php artisan ide-helper:eloquent-stub
Changelog
Please see the changelog.
License
Laravel IDE Helper Eloquent is open-sourced software licensed under the MIT license.