Laravel 13 will have the `#[UseModel(User::class)]` attribute to define the model for a factory.
You can use either the `$model` property or the attribute.
Maybe it's a good time to reopen your closed PR for adding a new attribute somewhere in the framework?
Back