Direct answer
What is Laravel Sanctum?
- Short definition
-
Laravel Sanctum is a lightweight authentication system for SPAs and mobile applications, providing token-based API authentication without the complexity of OAuth.
- Why it matters
- Sanctum makes it simple to secure APIs while keeping implementation straightforward, ideal for Laravel backends serving Vue.js or mobile apps.
How teams use Laravel Sanctum
Use this term when you need to describe the practical role it plays in a software project.
Common use cases
- Authenticating single-page applications with Laravel backend
- Securing mobile app API endpoints
- Managing multiple devices for the same user account
- API token management for third-party integrations
Examples of Laravel Sanctum
These examples show the term in everyday product, platform, or operations work.
Real-world examples
- Mobile app login with token stored securely in keychain
- SPA authentication with Laravel as API and Vue.js frontend
- Multiple API tokens per user with selective permissions