laravel/airlock
Laravel Sanctum (formerly Airlock) offers lightweight authentication for Laravel SPAs and simple APIs. Use cookie-based session auth for first-party SPAs or issue API tokens for mobile apps and third-party clients, with minimal setup and seamless Laravel integration.
sanctum + api guards).Adopt Sanctum if:
Look elsewhere if:
For Executives: "Sanctum is a lightweight, battle-tested solution for securing APIs and SPAs in Laravel, cutting months of dev time. It’s like Laravel’s built-in auth system for tokens—no OAuth2 bloat, just secure, scalable authentication. Perfect for our [SPA/mobile/API] roadmap, with MIT licensing and Laravel’s long-term support. Let’s use it to ship faster while keeping security robust."
For Engineering: *"Sanctum gives us token auth for SPAs/mobile with zero setup hassle. Key benefits:
Proposal: Use Sanctum for [X project] to avoid reinventing auth. We can add token revocation or multi-guard support later if needed. Estimated time savings: [Y] weeks."*
For Developers: *"Sanctum is the easiest way to add token auth to Laravel. Key perks:
composer require laravel/sanctum, run migrations, done.Example use case: Secure our [React/Vue] dashboard API without writing auth middleware from scratch."*
How can I help you explore Laravel packages today?