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.