Skip to content

[Feature Request]: Code Completion Generics #1123

@PerryvanderMeer

Description

@PerryvanderMeer

Feature Description

When creating a Eloquent Model with a Factory, the output is like:

class Customer extends Model
{
    use HasFactory;
}

Currently, Laravel appends the Factory generics to the docblock, like (see laravel/framework#52855):

https://github.com/laravel/laravel/blob/657070ea8a95ec269d0ed4c801cead04976a871a/app/Models/User.php#L12-L13

Same goes for the factories:

https://github.com/laravel/laravel/blob/657070ea8a95ec269d0ed4c801cead04976a871a/database/factories/UserFactory.php#L9-L12

Can we also apply those to the generated files?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions