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.

0.1.0 2025-01-21 17:27 UTC

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.