maksi / laravel-idea-type-hinting
Better type hinting for eloquent models
Installs: 1 140
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ~7.0|~7.1|~7.2
This package is auto-updated.
Last update: 2024-11-06 23:59:39 UTC
README
It is a package for better type hinting
Usages:
- You can extend the
Maksi\TypeHinting\Database\Eloquent\Model
model. - You can use traits:
Maksi\TypeHinting\Eloquent\Concerns\ModelAnnotations.php
andMaksi\TypeHinting\Eloquent\Concerns\ModelStaticAnnotations.php
directly in your models.
Methods from Eloquent builder will be type hinted on your models after model extending
or traits usages
whereKey
whereKeyNot
where
find
findMany
findOrFail
findOrNew
firstOrNew
firstOrCreate
updateOrCreate
firstOrFail
firstOr
create
forceCreate
update
paginate
https://packagist.org/packages/maksi/laravel-idea-type-hinting
Issue
In case if you have some idea for improvements, then please create an issue/PR for this project