Download the PHP package hulkur/laravel-hasmany-keyby without Composer
On this page you can find all versions of the php package hulkur/laravel-hasmany-keyby. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hulkur/laravel-hasmany-keyby
More information about hulkur/laravel-hasmany-keyby
Files in hulkur/laravel-hasmany-keyby
Download hulkur/laravel-hasmany-keyby
More information about hulkur/laravel-hasmany-keyby
Files in hulkur/laravel-hasmany-keyby
Vendor hulkur
Package laravel-hasmany-keyby
Short Description Add possibility to have related models in many-to-many relationship attached to the parent model by defined key values.
License MIT
Homepage https://github.com/hulkur/laravel-hasmany-keyby
Package laravel-hasmany-keyby
Short Description Add possibility to have related models in many-to-many relationship attached to the parent model by defined key values.
License MIT
Homepage https://github.com/hulkur/laravel-hasmany-keyby
Please rate this library. Is it a good library?
Informations about the package laravel-hasmany-keyby
Extend Laravel HasMany relationship with KeyBy method
Adds possibility to have related models in many-to-many relationship attached to the parent model by defined key values.
Usually it would be related model id
.
call:
laravel default:
New usage with keyBy:
result:
This is specially useful in case there is a need to manipulate pivot records in mass. Ex: users/groups grid where grid fields are some value in pivot record and not all pivot records exist
All versions of laravel-hasmany-keyby with dependencies
PHP Build Version
Package Version
The package hulkur/laravel-hasmany-keyby contains the following files
Loading the files please wait ....