A Laravel Package for adding Eloquent Has By Non-Dependent Subquery support to Laravel IDE Helper Laravel IDE Helper.
You can install the package via composer:
composer require --dev wimski/laravel-ide-helper-hook-eloquent-has-by-non-dependent-subquery
The package is loaded using Package Discovery, when disabled read Manual Installation.
Run standard model generation commands as normal:
php artisan ide-helper:models "App\Models\Post"
Docblocks will be added to the model
/**
* App\Models\Post
*
* @method static \Illuminate\Database\Eloquent\Builder|Post doesntHaveByNonDependentSubquery($relationMethod, ...$constraints)
* @method static \Illuminate\Database\Eloquent\Builder|Post hasByNonDependentSubquery($relationMethod, ...$constraints)
* @method static \Illuminate\Database\Eloquent\Builder|Post orDoesntHaveByNonDependentSubquery($relationMethod, ...$constraints)
* @method static \Illuminate\Database\Eloquent\Builder|Post orHasByNonDependentSubquery($relationMethod, ...$constraints)
*/
When disabled, register the LaravelIdeHelperHookEloquentHasByNonDependentSubqueryServiceProvider
manually by adding it to your config/app.php
/*
* Package Service Providers...
*/
Wimski\LaravelIdeHelperHookEloquentHasByNonDependentSubquery\Providers\LaravelIdeHelperHookEloquentHasByNonDependentSubqueryServiceProvider::class,
composer test
The MIT License (MIT). Please see License File for more information.