Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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`.
https://github.com/ngmy/laravel-ide-helper-eloquent
autocompletion eloquent laravel
Last synced: 17 days ago
JSON representation
Laravel IDE Helper Eloquent generates a stub file to enable autocompletion for QueryBuilder methods on models in IDEs/editors that do not support `@mixin`.
- Host: GitHub
- URL: https://github.com/ngmy/laravel-ide-helper-eloquent
- Owner: ngmy
- License: mit
- Created: 2025-01-21T16:09:15.000Z (18 days ago)
- Default Branch: master
- Last Pushed: 2025-01-21T17:24:08.000Z (18 days ago)
- Last Synced: 2025-01-21T17:25:28.977Z (18 days ago)
- Topics: autocompletion, eloquent, laravel
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel IDE Helper Eloquent
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](https://github.com/barryvdh/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
https://github.com/bmewburn/vscode-intelephense/issues/708
## Installation
```bash
composer require --dev ngmy/laravel-ide-helper-eloquent
```## Usage
First, generate the IDE Helper file using Laravel IDE Helper:
```bash
php artisan ide-helper:generate
```Then, generate the Eloquent stub file using Laravel IDE Helper Eloquent:
```bash
php artisan ide-helper:eloquent-stub
```## Changelog
Please see the [changelog](CHANGELOG.md).
## License
Laravel IDE Helper Eloquent is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).