Package Data | |
---|---|
Maintainer Username: | xaamin |
Maintainer Contact: | taylor@laravel.com (Taylor Otwell) |
Package Create Date: | 2023-03-31 |
Package Last Update: | 2024-09-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-18 03:00:20 |
Package Statistics | |
---|---|
Total Downloads: | 297 |
Monthly Downloads: | 44 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Lumen Sanctum provides a featherweight authentication system for SPAs and simple APIs.
This package requires requires php >= 8.0 and lumen >= 9
Step 1 - Install the package on your project
composer require xaamin/sanctum
Step 2 - Add the service provider in bootstrap/app.php
$app->register(
Laravel\Sanctum\SanctumServiceProvider::class
);
Step 3 - Use sanctum
as your driver for api
guard in your config/auth.php
file, copy the auth config file sample from here.
'guards' => [
'api' => [
'driver' => 'sanctum',
'provider' => 'users',
'hash' => false,
],
],
Documentation for Sanctum can be found on the Laravel website.
Thank you for considering contributing to Sanctum! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Please review our security policy on how to report security vulnerabilities.
Lumen Sanctum is open-sourced software licensed under the MIT license.