maksi / laravel-idea-type-hinting
Better type hinting for eloquent models
Installs: 1 184
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/maksi/laravel-idea-type-hinting
Requires
- php: ~7.0|~7.1|~7.2
This package is auto-updated.
Last update: 2025-10-07 02:24:29 UTC
README
It is a package for better type hinting
Usages:
- You can extend the
Maksi\TypeHinting\Database\Eloquent\Modelmodel. - You can use traits:
Maksi\TypeHinting\Eloquent\Concerns\ModelAnnotations.phpandMaksi\TypeHinting\Eloquent\Concerns\ModelStaticAnnotations.phpdirectly in your models.
Methods from Eloquent builder will be type hinted on your models after model extending or traits usages
whereKeywhereKeyNotwherefindfindManyfindOrFailfindOrNewfirstOrNewfirstOrCreateupdateOrCreatefirstOrFailfirstOrcreateforceCreateupdatepaginate
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