Skip to content

fix: Add HasApiTokens trait to User model for Sanctum authentication#12

Merged
przemekp95 merged 1 commit intodevelopfrom
fix-sanctum-auth
Jan 28, 2026
Merged

fix: Add HasApiTokens trait to User model for Sanctum authentication#12
przemekp95 merged 1 commit intodevelopfrom
fix-sanctum-auth

Conversation

@przemekp95
Copy link
Owner

  • Import Laravel\Sanctum\HasApiTokens
  • Add HasApiTokens trait to User class
  • Enables API token generation for authentication
  • Fixes missing createToken() method issue

- Import Laravel\Sanctum\HasApiTokens
- Add HasApiTokens trait to User class
- Enables API token generation for authentication
- Fixes missing createToken() method issue
@przemekp95 przemekp95 merged commit 6f8c386 into develop Jan 28, 2026
1 check passed
@przemekp95 przemekp95 deleted the fix-sanctum-auth branch January 28, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant