spatie/laravel-morph-map-generator
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-comments | 0.93 | Laravel Comments lets you associate comments with any Eloquent model, so you can add threaded discussion to posts, products, or other records with minimal setup. Configurable, tested, and maintained by Spatie. | 16 | 48 | 41 | 0 | 4 | 18.7 | 1.2 | MIT | 7 months ago | |
| spatie/laravel-medialibrary | 0.92 | Associate files with Eloquent models via a simple API: add uploads or local paths to media collections, store them on any Laravel filesystem, and generate image manipulations for images and PDFs. Ideal for managing media in Laravel apps. | 6,174 | 6,240 | 1,096 | 4M | 2 | 72.7 | 45.9 | MIT | 1 week ago | |
| spatie/laravel-sitemap | 0.91 | Generate sitemaps for your Laravel site with ease. Crawl your entire site automatically or build sitemaps manually, add URLs with metadata like last modification dates, and split large crawls into multiple sitemap files. | 2,619 | 2,650 | 295 | 1M | 0 | 44.7 | 40.8 | MIT | 4 months ago | |
| spatie/laravel-html | 0.91 | Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use. | 829 | 839 | 102 | 569K | 0 | 22.4 | 41.2 | MIT | 8 months ago | |
| spatie/laravel-visit | 0.91 | Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. | 159 | 160 | 9 | 729 | 0 | 11.2 | 10.9 | MIT | 7 months ago | |
| spatie/laravel-image-optimizer | 0.90 | Laravel integration for spatie/image-optimizer. Optimize PNG, JPG, SVG, and GIF files by running them through available system binaries. Use the ImageOptimizer facade, resolve an OptimizerChain from the container, or apply middleware to optimize uploads automatically. | 1,307 | 1,318 | 116 | 357K | 0 | 24.1 | 35.4 | MIT | 8 months ago | |
| spatie/laravel-fractal | 0.89 | Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays. | 1,903 | 1,924 | 183 | 411K | 0 | 30.2 | 34.0 | MIT | 8 months ago | |
| sebastiaanluca/laravel-auto-morph-map | 0.88 | — | 53 | 55 | 9 | 224 | 0 | 0.9 | 6.9 | MIT | 5 years ago | |
| spatie/laravel-translatable | 0.88 | A Laravel trait that makes Eloquent model attributes translatable, storing translations as JSON with no extra table needed. Set and retrieve per-locale values, with fallbacks for missing translations. | 2,459 | 2,488 | 296 | 2M | 0 | 50.1 | 47.5 | MIT | 2 weeks ago | |
| spatie/laravel-view-models | 0.88 | Move complex view-prep logic out of controllers into dedicated Laravel view model classes. Extend Spatie\ViewModels\ViewModel to transform data for views, expose computed properties, and keep templates clean and focused. | 1,093 | 1,099 | 60 | 85K | 0 | 18.9 | 27.6 | MIT | 8 months ago | |
| gigerit/laravel-morphmap-js-generator | 0.87 | Generates a JavaScript file from your Laravel morph map so front-end code can resolve model aliases without hardcoding class names. Keeps polymorphic types in sync across PHP and JS, avoiding mismatches when morph aliases change. | 0 | — | 0 | — | 1 | 18.7 | — | — | 1 month ago | |
| cline/morphism | 0.86 | 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 | |
| moneo/laravel-morphmap | 0.86 | — | 53 | 53 | 2 | 57 | 0 | 0.3 | 4.3 | MIT | — | |
| spatie/laravel-data | 0.86 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| pindab0ter/constrained-morph-to-for-laravel | 0.86 | 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 | |
| spatie/laravel-typescript-transformer | 0.86 | Convert PHP classes, enums, and complex types into TypeScript definitions automatically. This Laravel package handles generics, nullable types, and even TypeScript functions, keeping your frontend and backend types in sync. | 400 | 399 | 37 | 1M | 0 | 25.1 | 52.8 | MIT | 4 months 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 | |
| spatie/laravel-model-states | 0.85 | Add state behaviour to Eloquent models by combining the state pattern and state machines. Define each state as a class, cast it on your model, handle database serialization automatically, and transition between states easily. | 1,307 | 1,309 | 107 | 659K | 0 | 40.2 | 43.9 | MIT | 2 days ago | |
| mlbrgn/laravel-medialibrary-extensions | 0.85 | A collection of extensions for spatie/laravel-medialibrary that adds extra helpers and functionality for managing media in Laravel applications, streamlining common upload, conversion, and storage tasks with additional tools and integrations. | 0 | 0 | 0 | 64 | 1 | 19.8 | 30.6 | MIT | 2 weeks ago | |
| spatie/laravel-model-info | 0.85 | Inspect Laravel Eloquent models to discover their file name, table name, attributes (name/type) and relations (name/type/related model). Also includes a ModelFinder to automatically locate all models in your application. | 182 | 183 | 23 | 44K | 0 | 14.8 | 34.7 | MIT | 8 months ago |
How can I help you explore Laravel packages today?