maksi / laravel-idea-type-hinting
Better type hinting for eloquent models
Package info
github.com/TBlindaruk/laravel-idea-type-hinting
pkg:composer/maksi/laravel-idea-type-hinting
1.0.1
2018-05-01 16:40 UTC
Requires
- php: ~7.0|~7.1|~7.2
This package is auto-updated.
Last update: 2026-03-07 03:23:43 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