Refactor User model to use HasFactory trait and add type hint for UserFactory (#6453)

This commit is contained in:
Punyapal Shah 2024-09-19 16:52:19 +05:30 committed by GitHub
parent 6e71b994e7
commit c9c8fb9ee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@ use Illuminate\Notifications\Notifiable;
class User extends Authenticatable class User extends Authenticatable
{ {
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory, Notifiable; use HasFactory, Notifiable;
/** /**