phl/laravel-sti
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| oldtimeguitarguy/eloquent-single-table-inheritance | 0.87 | Single table inheritance for Laravel Eloquent models: store multiple related model types in one database table and have each subclass automatically instantiate with its own behavior, scopes, and attributes. | 1 | 1 | 0 | 14 | 0 | 0.3 | 12.5 | MIT | 10 years ago | |
| arcanedev/laravel-nestedset | 0.87 | Laravel Nested Set offers an efficient way to store and query hierarchical data using the nested set model, with a fluent API for creating, moving, and traversing trees and fast ancestor/descendant lookups without recursive queries. | 5 | 6 | 1 | 21 | 0 | 0.1 | 9.0 | MIT | 9 years ago | |
| 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 | |
| mannikj/laravel-sti | 0.87 | — | 6 | 6 | 1 | 222 | 0 | 9.1 | 20.9 | MIT | 1 year ago | |
| gurgentil/eloquent-filters | 0.87 | gurgentil/eloquent-filters adds clean, reusable filtering to Laravel Eloquent models. Define filter classes for each parameter and let the package whitelist and apply request-based query filters, keeping controllers tidy and searches safe, flexible, and easy to maintain. | 15 | — | 0 | — | 0 | 0.1 | — | MIT | 5 years ago | |
| ceddyg/query-builder-repository | 0.87 | ceddyg/query-builder-repository is a Laravel package that layers a repository abstraction over the fluent query builder, giving you a clean, reusable data layer for your models. It streamlines CRUD, filtering, and query organization so controllers and services stay lean, readable, and testable. | 11 | — | 7 | — | 3 | 1.0 | 0.4 | — | — | |
| fico7489/laravel-eloquent-join | 0.87 | 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 |
|
| watheqalshowaiter/model-fields | 0.87 | Easily add custom fields to Laravel Eloquent models with watheqalshowaiter/model-fields. A simple trait stores dynamic, validated attributes as JSON, letting you extend models without extra migrations or schema changes. | 40 | 39 | 3 | 9 | 0 | 13.2 | 1.3 | MIT | 4 months ago | |
| pindab0ter/constrained-morph-to-for-laravel | 0.87 | 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 | |
| staudenmeir/eloquent-has-many-deep | 0.87 | Extended HasManyThrough for Laravel 5.5+ lets you define relationships with unlimited intermediate models, supporting many-to-many, polymorphic, and combined relationship types. Define deep relationships by concatenating existing ones or specifying keys manually; includes third-party package support... | 2,872 | 2,876 | 157 | 943K | 2 | 36.4 | 36.8 | MIT | 7 months ago | |
| williamoliveira/eloquent-array-query-builder | 0.87 | 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 | |
| paxha/laravel-recursive-relationships | 0.87 | Laravel package for defining and working with recursive relationships in Eloquent models—query parent-child hierarchies, trees, and nested structures with ease. (Approx 160 chars - need closer to 300) Let me expand to ~300 chars: Laravel package for defining and querying recursive relationships in E... | 27 | 27 | 5 | 898 | 1 | 0.4 | 21.0 | MIT | 5 years ago | |
| eghamat24/database-repository | 0.87 | A Laravel package that adds a database repository layer for wrapping Eloquent queries in reusable repository classes. It helps keep models and controllers clean, reduces duplicated query logic, and makes data access more organized, consistent, and testable for common database operations. | 19 | — | 9 | — | 4 | 1.7 | 0.8 | — | 1 year ago | |
| complex-heart/criteria | 0.86 | Bring the Criteria pattern to Laravel Eloquent with complex-heart/criteria. Encapsulate query constraints in reusable, composable classes so filtering stays clean, testable, and out of your models. Ideal for flexible repository queries and complex search logic. | 5 | 5 | 0 | 215 | 1 | 15.7 | 24.6 | MIT | 2 months ago | |
| sbamtr/laravel-query-enrich | 0.86 | A Laravel package that adds expressive query enrichment helpers, letting you append computed values, relationships, and metadata to Eloquent results cleanly while reducing boilerplate and keeping data shaping close to your queries. | 142 | 142 | 6 | 878 | 1 | 12.9 | 13.0 | MIT | 5 months ago | |
| genealabs/laravel-two-way-attribute-casting | 0.86 | A Laravel package that enables two-way attribute casting on Eloquent models, letting you transform values both when reading from and writing to the database with custom cast classes. Useful for encapsulating conversion logic in one place for cleaner, reusable model code. | 1 | 1 | 0 | 0 | 0 | 0.2 | — | — | 8 years ago | |
| santigarcor/laravel-ownable | 0.86 | A Laravel package that adds polymorphic ownership to Eloquent models, letting any model be assigned to users or other entities. It provides traits, relationships, and helpers to query owned records and manage ownership across your application. | 19 | — | 4 | — | 0 | 0.6 | — | MIT | 2 years ago | |
| architools/laravel-sieve | 0.86 | A Laravel package that adds a lightweight, composable filtering layer to Eloquent queries. Define sieves to sift model results by request parameters, keeping controllers clean and query logic reusable across your app. | 14 | 14 | 0 | 2 | 0 | 0.1 | 0.8 | — | — | |
| mr-punyapal/laravel-extended-relationships | 0.86 | Extra Eloquent relationship helpers for Laravel that cut database queries, improve performance, and reduce duplicate code. Requires PHP 8.3+ and Laravel 12/13, with easy Composer installation. | 174 | 174 | 8 | 1K | 1 | 21.2 | 14.0 | 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 |
How can I help you explore Laravel packages today?