mpociot/laravel-composite-key
Adds support for composite primary keys in Laravel Eloquent models. This package lets models with multi-column keys work with common Eloquent operations like saving, updating, deleting, and finding records, without hacking around the framework's single-key assumptions.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| leocarmo/laravel-eloquent-model-filter | 0.87 | A Laravel package for adding declarative filters to Eloquent models. Define allowed filters once, apply them from request query strings, and keep complex query logic reusable, readable, and easy to test across your application. | 11 | 11 | 2 | 0 | 0 | 0.1 | — | — | 8 years ago | |
| awobaz/compoships | 0.86 | Compoships adds composite-key relationship support to Laravel's Eloquent ORM, letting you define hasMany, belongsTo and other relations that match two or more columns. Ideal for third-party or legacy schemas; use the Model base class or the Compoships trait. | 1,226 | 1,230 | 144 | 580K | 32 | 39.6 | 57.1 | MIT | 2 months ago | |
| supportpal/eloquent-model | 0.86 | Eloquent-style base Model for PHP/Laravel to build custom, non-database models. Supports accessors/mutators, attribute casting, guarded/fillable and hidden fields, appended attributes, and easy array/JSON conversion. | 0 | 0 | 0 | 911 | 0 | 11.8 | 44.9 | — | 5 months ago | |
| jamesh/laravel-uuid | 0.86 | Adds UUID primary keys to Laravel Eloquent models. A lightweight trait generates a UUID on creation, supports lookups by UUID, and makes models route-key ready, so you can replace auto-incrementing IDs without rewriting your queries or controllers. | 20 | 21 | 8 | 6 | 0 | 0.2 | 1.1 | MIT | 4 years ago | |
| nazarii-kretovych/laravel-api-model-driver | 0.86 | An Eloquent driver for Laravel that backs models with external APIs instead of a database, so you can query remote HTTP resources while keeping familiar models, relationships, casts, and conventions, without rewriting your data layer. | 34 | — | 13 | — | 0 | 0.7 | — | MIT | 6 years ago | |
| mpyw/laravel-retry-on-duplicate-key | 0.86 | Automatically retries database operations when a duplicate key error occurs in Laravel. Wrap Eloquent firstOrCreate, updateOrCreate, or insert calls in a retryable transaction to safely handle race conditions and unique constraint conflicts under concurrent writes. | 12 | — | 1 | — | 0 | 0.2 | — | MIT | 3 years ago | |
| reshadman/laravel-optimistic-locking | 0.86 | Add optimistic locking to your Laravel Eloquent models to prevent lost updates. It tracks version numbers on save, throws exceptions on conflicts, and works with your existing models—no schema changes beyond a version column. | 96 | — | 24 | — | 6 | 2.9 | 1.9 | MIT | 7 years ago | |
| imanghafoori/eloquent-relativity | 0.86 | Laravel package that lets you declare Eloquent relationships without importing related model classes. Relativity infers the target model from the method name, so hasMany, hasOne, belongsTo and belongsToMany calls stay concise and your models keep fewer use statements. | 148 | 148 | 13 | 27 | 1 | 1.2 | 1.0 | MIT | 2 years ago | |
| illuminatech/sync-many-attribute | 0.86 | Laravel package for synchronizing many-to-many related records and their attributes through a single model. Save related model attributes, including pivot data, using familiar form binding and validation, simplifying complex multi-record editing without custom sync logic. | 15 | — | 0 | — | 0 | 0.1 | — | NOASSERTION | — | |
| xedi/eloquent-sync | 0.85 | xedi/eloquent-sync is a Laravel package for keeping Eloquent models synchronized with external systems. It helps map model data, push and pull changes, and keep local records consistent with remote sources, reducing custom integration boilerplate for sync workflows. | 1 | 1 | 0 | 0 | 1 | 0.2 | — | MIT | 6 years ago | |
| petrknap/eloquent | 0.85 | A collection of enhancements and helper classes for Laravel Eloquent: UTC/local datetime casts, Optional wrappers that delegate missing-model handling, and repositories that provide a clean, expressive interface for persistence logic. | 0 | 0 | 0 | 374 | 0 | 22.6 | 41.7 | LGPL-3.0 | 1 week ago | |
| yadakhov/insert-on-duplicate-key | 0.85 | — | 275 | 282 | 51 | 24K | 9 | 9.8 | 30.1 | MIT | 5 years ago | |
| optix/eloquent-draftable | 0.85 | A Laravel package that adds draft and published states to Eloquent models, letting you save work-in-progress records and publish them later. Drafts stay separate from live content, so unfinished entries remain hidden from your application's normal queries until you're ready. | 27 | 27 | 6 | 0 | 0 | 0.4 | — | MIT | 6 years ago | |
| n7olkachev/laravel-computed-properties | 0.85 | Add computed properties to your Laravel Eloquent models, calculated on the fly like accessors but excluded from the database. Keep models lean, reuse derived values across queries and serialization, and write less boilerplate. | 187 | — | 8 | — | 0 | 1.2 | — | — | 8 years ago | |
| fico7489/laravel-eloquent-join | 0.85 | Laravel Eloquent Join adds SQL JOIN support to Eloquent models and relationships, letting you sort, filter, and query joined tables directly while keeping familiar query builder syntax. It simplifies complex relationship queries and helps avoid extra queries. | 338 | — | 87 | — | 11 | 7.6 | 4.1 | MIT | 1 year ago |
|
| pepijnolivier/eloquent-model-generator | 0.85 | Generate Eloquent model classes directly from your database tables. This Laravel package inspects your schema and scaffolds models with fillable fields, relationships, casts, and docblocks, cutting boilerplate and speeding up development. | 91 | 92 | 14 | 0 | 6 | 3.4 | 2.3 | MIT | 11 months ago | |
| appstract/laravel-meta | 0.85 | Appstract Laravel Meta makes it easy to add, manage, and render SEO-friendly meta tags in Laravel apps. Define titles, descriptions, Open Graph and Twitter tags in PHP, then output them cleanly in your Blade views. | 129 | — | 12 | — | 0 | 1.4 | — | MIT | 8 years ago | |
| authentik/eloquent-cache | 0.85 | Eloquent Cache adds automatic query caching to Laravel models, storing results in your configured cache driver and invalidating them on create, update, and delete. Speed up repeated database reads with almost no code changes. | 57 | 57 | 6 | 1 | 1 | 0.6 | 0.1 | GPL-3.0 | 3 years ago | |
| zachleigh/laravel-property-bag | 0.85 | Add a flexible property bag to Laravel Eloquent models: store arbitrary key-value data as JSON without extra tables or migrations, with a clean API for setting, getting, and managing custom properties. | 84 | — | 8 | — | 2 | 0.7 | 0.3 | MIT | 6 years ago | |
| affordablemobiles/laravel-eloquent-query-cache | 0.85 | Cache your Eloquent query results in Laravel to cut repeated database hits. This package wraps query builder calls with a cache layer, letting you store and invalidate results per model or query for faster responses. | 0 | 0 | 1 | 3K | 0 | 0.3 | 48.5 | Apache-2.0 | 1 year ago |
How can I help you explore Laravel packages today?