diego-ninja/laravel-devices
Laravel package for tracking authenticated user devices and managing sessions. Includes device verification, fingerprinting integrations, session locking/blocking with optional Google 2FA, location tracking, events, middleware/controllers, and caching support.
Laravel Devices provides a comprehensive REST API divided into three main sections:
All API endpoints require authentication. The package uses your configured Laravel auth guard.
# Example with Bearer token
curl -X GET /api/devices \
-H "Authorization: Bearer your-token" \
-H "Accept: application/json"
{
"message": "Unauthenticated."
}
{
"message": "This action is unauthorized."
}
{
"message": "Session locked"
}
{
"message": "Too Many Attempts.",
"retry_after": 60
}
Always include appropriate headers:
Accept: application/jsonContent-Type: application/json for POST/PATCH requestsHandle rate limiting:
retry_after headerImplement proper error handling:
Use appropriate HTTP methods:
How can I help you explore Laravel packages today?