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.
actions/checkout v7, dependabot/fetch-metadata v3.1.0)whereMorphedTo() and orWhereMorphedTo() now qualify the morph columns against the parent table
instead of the first constrained type, which previously produced an unknown-column errorHow can I help you explore Laravel packages today?