Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.

laravel/sanctum image

laravel/sanctum stats

Downloads
56.7M
Stars
2,588
Open Issues
0
Forks
268

View on GitHub →

Laravel Sanctum

Laravel Sanctum offers a lightweight authentication solution perfect for Single Page Applications (SPAs) and simple APIs. Ideal for developers needing a straightforward and effective way to handle authentication without the bloat of larger systems.

Key Features:

  • Simple Setup: Easy to integrate with Laravel, making it less time-consuming to add to your project.
  • SPA Friendly: Specifically designed to handle authentication for SPAs smoothly.
  • API Support: Also caters to simple API authentication, providing secure access to your API endpoints.

Installation & Usage:

Installation is straightforward via Composer. You can find detailed installation and usage instructions on the Laravel website.

Contributing:

Contributions are welcome! Check out the contribution guidelines on the Laravel documentation to get started.

Security:

For security vulnerability reporting, visit Laravel Sanctum's security policy.

License:

Laravel Sanctum is available under the MIT license, allowing the freedom to use and modify the software as needed.

For developers looking for an efficient and easy-to-implement authentication system, Laravel Sanctum is an excellent choice, combining simplicity with powerful features for both SPAs and APIs.

laravel photo

Laravel is a web ecosystem full of delightful tools that are supercharged for developer happiness and productivity.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Laravel Sanctum Related Articles

Documenting API authentication in Laravel with Scramble image

Documenting API authentication in Laravel with Scramble

Read article
Token Forge - API Token Management with Laravel Breeze image

Token Forge - API Token Management with Laravel Breeze

Read article
Nuxt 3 + Laravel Sanctum Authentication: Secure Your SPA and API with Ease image

Nuxt 3 + Laravel Sanctum Authentication: Secure Your SPA and API with Ease

Read article
API Platform for Laravel image

API Platform for Laravel

Read article
Active Sessions Card for Laravel Pulse image

Active Sessions Card for Laravel Pulse

Read article
API Versioning in Laravel 11 image

API Versioning in Laravel 11

Read article
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge