Laravel 11.39 introduced the UseFactory attribute - a cleaner, more explicit way to associate Eloquent models with their factories. It removes the need for newFactory() and works perfectly even when your factories don't follow Laravel's naming conventions.
