mpociot/laravel-composite-key
Larablocks Analysis
mpociot/laravel-composite-key works with Laravel 5 (latest release 1.0, May 17, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: May 17, 2016)
- 328 downloads a month (needs 10,000)
- 35 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: May 17, 2016.
- No releases in the last 12 months.
- First released: May 17, 2016.
- Monthly downloads: 328, up 958% from six months ago.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require mpociot/laravel-composite-key |
|
| Latest Version: | 1.0 |
| PHP: | >=5.5.9 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Nov 18, 2020 |
| Links: | GitHub · Packagist |
Laravel Composite Key Trait
This is a small trait that I use in my projects, if I need support for composite keys in my Eloquent models.
Install via composer:
composer require mpociot/laravel-composite-key
Then use the trait in your model:
class MyModel extends Model
{
use HasCompositeKey;
protected $primaryKey = ['foo', 'bar'];
}
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0 | >=5.5.9 | 5.* | MIT |