japseyz / has-one-through
This package is abandoned and no longer maintained.
No replacement package was suggested.
Adds Has One Through Relationship
1.0.2
2015-11-10 09:17 UTC
This package is not auto-updated.
Last update: 2016-02-26 05:48:09 UTC
README
This package extends the laravel relationships to include a HasOneThrough method.
Install
- Add "japseyz/has-one-through": "~1.0" to your composer.json
- Run composer update
- In app/config.php aliases add 'Model' => JapSeyz\HasOneThrough\ModelExtender::class,
- Change your Models to import \Model
Done.
Use it as you would use $this->hasMany etc.