2017 © Pedro Peláez
 

library laravel-idea-type-hinting

Better type hinting for eloquent models

image

maksi/laravel-idea-type-hinting

Better type hinting for eloquent models

  • Tuesday, May 8, 2018
  • by Tetiana
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

laravel-idea-type-hinting

It is a package for better type hinting, (*1)


Usages:

  1. You can extend the Maksi\TypeHinting\Database\Eloquent\Model model.
  2. You can use traits: Maksi\TypeHinting\Eloquent\Concerns\ModelAnnotations.php and Maksi\TypeHinting\Eloquent\Concerns\ModelStaticAnnotations.php directly in your models., (*2)

    Methods from Eloquent builder will be type hinted on your models after model extending or traits usages, (*3)

    • 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, (*4)


Issue

In case if you have some idea for improvements, then please create an issue/PR for this project, (*5)

The Versions

08/05 2018

dev-master

9999999-dev https://github.com/TBlindaruk/laravel-idea-type-hinting

Better type hinting for eloquent models

  Sources   Download

MIT

The Requires

  • php ~7.0|~7.1|~7.2

 

laravel eloquent model models type phpstorm hinting idea makssiis

01/05 2018

1.0.1

1.0.1.0 https://github.com/TBlindaruk/laravel-idea-type-hinting

Better type hinting for eloquent models

  Sources   Download

MIT

The Requires

  • php ~7.0|~7.1|~7.2

 

laravel eloquent model models type phpstorm hinting idea makssiis

31/03 2018

1.0.0

1.0.0.0 https://github.com/TBlindaruk/laravel-idea-type-hinting

Better type hinting for eloquent models

  Sources   Download

MIT

The Requires

  • php ~7.0|~7.1|~7.2

 

laravel eloquent model models type phpstorm hinting idea makssiis