Download the PHP package sebwas/laravel-eloquent-compound-keys without Composer
On this page you can find all versions of the php package sebwas/laravel-eloquent-compound-keys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sebwas/laravel-eloquent-compound-keys
More information about sebwas/laravel-eloquent-compound-keys
Files in sebwas/laravel-eloquent-compound-keys
Download sebwas/laravel-eloquent-compound-keys
More information about sebwas/laravel-eloquent-compound-keys
Files in sebwas/laravel-eloquent-compound-keys
Vendor sebwas
Package laravel-eloquent-compound-keys
Short Description This helps using eloquent when using compound keys in the database
License MIT
Package laravel-eloquent-compound-keys
Short Description This helps using eloquent when using compound keys in the database
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-eloquent-compound-keys
Laravel Eloquent compound keys support
Usage
In your Model that uses the compound keys, simply put use SebWas\Laravel\Eloquent\CompoundKeys;
.
If another Model is referencing this through a HasManyThrough relationship, use the SebWas\Laravel\Eloquent\CompoundKeysRelationship
trait with it.
Limits
There are a few limits to this, that can be solved by overriding the functions and re-implementing them properly.
- The static
destroy
can't be called - The
morphTo
relationship won't work - HasManyThrough's
getHasCompareKey
doesn't work - Some other functions, especially on relations may be buggy
All versions of laravel-eloquent-compound-keys with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^5.0
The package sebwas/laravel-eloquent-compound-keys contains the following files
Loading the files please wait ....