pindab0ter/constrained-morph-to-for-laravel
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| genealabs/laravel-overridable-model | 0.87 | Override Eloquent model methods and properties at runtime without touching vendor code. Define per-model overrides in your app to customize package models, swap behavior, or inject your own logic—keeping third-party code untouched and upgrades painless. | 93 | 92 | 5 | 11K | 0 | 0.5 | 20.5 | MIT | 2 years ago | |
| spatie/laravel-morph-map-generator | 0.87 | 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 | |
| phl/laravel-sti | 0.87 | 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 | |
| genealabs/laravel-nova-morph-many-to-one | 0.86 | A Laravel Nova field that adds polymorphic many-to-one relationship support, letting you attach and manage morph-related models directly within Nova resource forms and detail views. | 2 | 2 | 0 | 0 | 0 | 0.2 | — | MIT | 2 years ago | |
| sebastiaanluca/laravel-auto-morph-map | 0.86 | — | 53 | 55 | 9 | 224 | 0 | 0.9 | 6.9 | MIT | 5 years ago | |
| leandrodiogenes/laravel-auto-morph-map | 0.86 | Automatically generates and manages morph maps for Laravel polymorphic relationships, so you no longer maintain a manual morphMap array by hand. Keeps model aliases consistent and simplifies storing polymorphic types in the database. | 0 | — | 0 | — | 0 | 0.0 | — | MIT | 4 years 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 | |
| genealabs/nova-prepopulate-searchable | 0.85 | Nova Prepopulate Searchable pre-fills Laravel Nova's searchable select fields with their current values, so BelongsTo and similar relationships display the selected option correctly on create and edit forms instead of showing up blank. | 37 | 38 | 19 | 19 | 0 | 0.5 | 1.6 | MIT | 4 years ago | |
| laravel-shift/blueprint | 0.85 | Blueprint rapidly generates multiple Laravel components from a single, human-readable YAML “draft.” Run artisan commands like blueprint:build to scaffold models, controllers, migrations, tests, and more from one definition—ideal for quickly spinning up features and CRUD. | 3,111 | 3,115 | 294 | 111K | 4 | 35.6 | 24.0 | MIT | 11 months ago | |
| digital-creative/nova-inline-morph-to | 0.85 | A Laravel Nova field for inline morphTo editing: create and update polymorphic related records directly from the parent resource form, without leaving the page. Streamlines data entry and polymorphic relationship workflows in Nova. | 34 | 33 | 14 | 410 | 0 | 0.7 | 15.3 | MIT | 1 year ago | |
| rackbeat/laravel-morph-where-has | 0.85 | — | 7 | 7 | 1 | 326 | 2 | 2.9 | 22.3 | MIT | 3 years ago | |
| sethphat/eloquent-docs | 0.85 | sethphat/eloquent-docs generates readable documentation for your Eloquent models, drawing details from the models themselves so your Laravel project's data layer stays easy to understand and maintain as it grows. | 53 | 53 | 9 | 476 | 2 | 1.4 | 14.6 | MIT | 2 years ago | |
| kerrialn/static-data-importer-bundle | 0.85 | 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 | |
| mouf/schema-analyzer | 0.85 | A PHP package from the Mouf framework that analyzes database schemas, introspecting tables and columns to help map or generate PHP classes from an existing database structure. Useful for reverse-engineering models and keeping code in sync with your schema. | 8 | 8 | 5 | 2K | 0 | 0.2 | 31.4 | MIT | 1 year ago | |
| awobaz/eloquent-mutators | 0.85 | Add get and set mutators to Eloquent attributes without boilerplate accessor methods. Define reusable mutator classes and attach them to model attributes at runtime, keeping models clean and mutator logic reusable across your Laravel projects. | 45 | 45 | 7 | 363 | 2 | 1.4 | 15.4 | MIT | 1 year ago | |
| rapidwebltd/improved-polymorphic-eloquent-builder | 0.85 | 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. | 11 | — | 1 | — | 0 | 0.4 | — | LGPL-3.0 | 8 years ago | |
| plin-code/laravel-custom-fields | 0.85 | Laravel Custom Fields is a package for adding configurable, model-specific custom fields to Laravel applications. Define field types and validation, assign fields to models, and manage extra metadata or form inputs without schema changes—useful for CMS, CRM, and admin interfaces. | 4 | 4 | 0 | 77 | 0 | 19.4 | 19.6 | MIT | 2 weeks ago | |
| fidum/laravel-eloquent-morph-to-one | 0.85 | 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 | |
| arcanedev/laravel-nestedset | 0.85 | 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 | |
| nwidart/laravel-videoable | 0.85 | Laravel Videoable provides a Videoable trait and polymorphic video model to associate videos with any Eloquent model, making it easy to store and retrieve video records for posts, products, and other Laravel resources. | 18 | — | 10 | — | 0 | 0.7 | — | MIT | 8 years ago |
How can I help you explore Laravel packages today?