Laravel Sanctum executes 3 database queries for every HTTP request.
This package wraps the default PersonalAccessToken
model, uses cache to retrieve the personal_access_token
and tokenable
model. This reduces 2 queries for most requests.
You can install the package via composer:
composer require abe/cache-for-laravel-sanctum
Once you have this package in your project, Sanctum tokens will be retrieved through cache automatically. Redis cache is recommended.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.