wimski / laravel-ide-helper-hook-eloquent-has-by-non-dependent-subquery
Add Eloquent Has By Non-dependent Subquery support to Laravel IDE Helper
Maintainers
Details
github.com/wimski/laravel-ide-helper-hook-eloquent-has-by-non-dependent-subquery
Installs: 5 203
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- barryvdh/laravel-ide-helper: ^2.12.2
- laravel/framework: ^8.74 || ^9.0
- mpyw/eloquent-has-by-non-dependent-subquery: ^1.0 || ^2.0
- phpdocumentor/type-resolver: ^1.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- nunomaduro/larastan: ^1.0 || ^2.0
- orchestra/testbench: ^6.7 || ^7.0
- phpstan/phpstan-mockery: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2023-12-23 18:34:21 UTC
README
A Laravel Package for adding Eloquent Has By Non-Dependent Subquery support to Laravel IDE Helper Laravel IDE Helper.
Installation
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.
Usage
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) */
Manual Installation
When disabled, register the LaravelIdeHelperHookEloquentHasByNonDependentSubqueryServiceProvider
manually by adding it to your config/app.php
/* * Package Service Providers... */ Wimski\LaravelIdeHelperHookEloquentHasByNonDependentSubquery\Providers\LaravelIdeHelperHookEloquentHasByNonDependentSubqueryServiceProvider::class,
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.