Loading player...

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.

Would you like to hear from Laracasts by email occasionally?