rapidwebltd/improved-polymorphic-eloquent-builder
Improve polymorphic relationship querying in Laravel with a cleaner Eloquent builder API. This package helps you filter and chain queries across morph types more expressively, reducing boilerplate when working with polymorphic models.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fidum/laravel-eloquent-morph-to-one | 0.86 | Adds a MorphToOne relationship to Laravel's Eloquent ORM, letting a model own a single polymorphic related record. Useful when a parent has exactly one morph child, mirroring MorphMany but returning a single model with lazy and eager loading support. | 34 | — | 4 | — | 0 | 14.4 | — | MIT | 3 months ago | |
| moneo/laravel-morphmap | 0.86 | — | 53 | 53 | 2 | 57 | 0 | 0.3 | 4.3 | MIT | — | |
| sehrgut/eloquery | 0.86 | eloquery is a small Laravel package that adds convenient helpers for building Eloquent queries, aimed at reducing boilerplate when filtering, sorting, and composing database queries in your models. | 4 | 3 | 2 | 0 | 1 | 0.1 | — | MIT | — | |
| andydefer/domain-structures | 0.86 | A Laravel/PHP package that provides reusable domain structures and building blocks for domain-driven design. It helps organize business logic, reduce boilerplate, and keep core rules isolated from framework and infrastructure concerns for cleaner, more maintainable applications. | 0 | 0 | 0 | 2K | 0 | 0.0 | 46.3 | MIT | — | |
| spatie/laravel-morph-map-generator | 0.86 | Stop forgetting to register models in your Laravel morph map. This package auto-generates morph maps at boot, letting each model register itself via a simple getMorphClass method. Includes configurable autogeneration and a base directory setting for non-default model locations. | 77 | 77 | 9 | 23K | 0 | 20.6 | 38.7 | MIT | 3 months ago | |
| williamoliveira/eloquent-array-query-builder | 0.86 | Query PHP arrays with a familiar Eloquent-style API. Filter, sort, group, and paginate in-memory data using where, orderBy, and limit methods, bringing Laravel's query builder ergonomics to plain arrays and collections without touching a database. | 18 | — | 11 | — | 1 | 0.6 | — | — | 6 years ago | |
| kerrialn/static-data-importer-bundle | 0.86 | A Symfony bundle for importing static data into your application. It helps load seed or reference datasets into your database through a simple, configurable workflow, making it easier to keep fixtures and lookup data in sync. A lightweight utility for repetitive data import tasks. | 1 | 1 | 0 | 0 | 1 | 0.4 | — | MIT | 4 years ago | |
| davidwesdijk/laravel-polymorphic-eav | 0.86 | Add flexible, polymorphic EAV attributes to any Laravel model. Store custom fields as attribute-value pairs without schema changes, attach them to multiple models, and query them with familiar Eloquent syntax. Great for dynamic product or user metadata. | 6 | 6 | 4 | 0 | 2 | 0.7 | 0.4 | MIT | 5 years ago | |
| ankurk91/laravel-eloquent-relationships | 0.86 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.7 | MIT | — | |
| leocarmo/laravel-eloquent-model-filter | 0.85 | 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 | |
| phl/laravel-sti | 0.85 | phl/laravel-sti brings Single Table Inheritance to Laravel Eloquent. Map multiple model subclasses to one database table using a type column, with automatic class resolution, scoped queries, and familiar Eloquent relationships and behavior for cleaner hierarchical models instead of separate tables. | 17 | 17 | 0 | 0 | 1 | 0.2 | — | MIT | 6 years ago | |
| cline/morphism | 0.85 | Central registry for Laravel polymorphic key mapping. Define which primary key column (id/uuid/ulid) each model uses in morph relations, with migration macros, optional strict enforcement, and config-based setup—ideal for package authors. | 0 | 0 | 0 | 3K | 0 | 7.2 | 50.0 | MIT | 8 months ago | |
| ponich/eloquent-traits | 0.85 | A collection of reusable traits for Laravel Eloquent models that helps cut boilerplate by adding common model behaviors through simple trait imports, keeping your codebase cleaner and more consistent. | 18 | 18 | 2 | 0 | 1 | 0.3 | — | MIT | — | |
| laravel-interaction/interactions | 0.85 | Laravel Interaction lets Eloquent models interact polymorphically—likes, favorites, votes, follows, bookmarks, subscriptions, and more. Attach reusable interaction types to any model, query who interacted and what they interacted with, and build social features with clean, extendable APIs. | 1 | — | 0 | — | 0 | 8.4 | — | MIT | 7 months ago | |
| masterfri/laravel-smart-relations | 0.85 | Laravel Smart Relations streamlines Eloquent relationship management in Laravel with smarter helpers and conventions for defining, querying, and working with model relations, reducing boilerplate and keeping model code cleaner and easier to maintain. | 6 | — | 1 | — | 0 | 0.4 | — | — | 7 years ago | |
| pindab0ter/constrained-morph-to-for-laravel | 0.85 | Type-constrained polymorphic relationships for Laravel Eloquent. Extend morphTo to accept only specified model types, ensuring type safety and data integrity while keeping the flexibility of a polymorphic database structure. | 3 | 3 | 1 | 3K | 0 | 17.5 | 45.9 | MIT | 2 months ago | |
| rackbeat/laravel-morph-where-has | 0.85 | — | 7 | 7 | 1 | 326 | 2 | 2.9 | 22.3 | MIT | 3 years ago | |
| elhareth/laravel-eloquent-metable | 0.85 | elhareth/laravel-eloquent-metable adds flexible key-value metadata to any Eloquent model via a simple trait, letting you attach custom attributes without extra migrations or schema changes. | 0 | — | 0 | — | 0 | 0.0 | — | MIT | 2 years ago | |
| paulhenri-l/eloquent-builder-decorator | 0.85 | A Laravel package for decorating Eloquent query builders. Wrap builders to add reusable query logic, filters, and composable behavior without touching your models. Keeps query customization clean and testable. | 11 | 11 | 1 | 0 | 0 | 0.1 | — | MIT | 6 years ago | |
| imanghafoori/eloquent-relativity | 0.85 | 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 |
How can I help you explore Laravel packages today?