Laravel V11.39 Released With New Features And Updates
Laravel v11.39 released with UseFactory attribute, prevent destructive rollbacks, phpredis backoff & max retry options, and more.
This week, the Laravel team released v11.39, which includes a model factory class attribute, the ability to prevent destructive rollbacks, PhpRedis backoff and max retry options, and more. #Introduce the UseFactory attribute Chris Arter contributed a UseFactory PHP attribute to define which factory a model should use. This is useful for registering a factory for models outside of the conventional App\Models namespace: namespace App\SomeFeatureDomain\Models\Comment; use Database\Factories\CommentFactory;use Illuminate\Database\Eloquent\Relations\HasMany;use Illuminate\Database\Eloquent\Attribut...