Instead of relying on developers to remember to register polymorphic aliases, Laravel 8.59 brings a new `requireMorphMap` method to strictly enforce aliases being set.

The post Enforcing Morph Maps in Laravel appeared first on Laravel News.

Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Leave a Reply