Download the PHP package leap-lyhour/lighthouse-graphql-sanctum-auth without Composer
On this page you can find all versions of the php package leap-lyhour/lighthouse-graphql-sanctum-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leap-lyhour/lighthouse-graphql-sanctum-auth
More information about leap-lyhour/lighthouse-graphql-sanctum-auth
Files in leap-lyhour/lighthouse-graphql-sanctum-auth
Package lighthouse-graphql-sanctum-auth
Short Description Enterprise-grade Laravel Package for Lighthouse GraphQL with Sanctum Authentication, Spatie Permissions, Multi-Tenancy, 2FA, and Audit Logging
License MIT
Homepage https://github.com/lyhourdev/lighthouse-graphql-sanctum-auth
Informations about the package lighthouse-graphql-sanctum-auth
Lighthouse GraphQL Sanctum Auth / Lighthouse GraphQL Sanctum Auth
Enterprise-grade Laravel Package that provides Laravel Sanctum Authentication with Lighthouse GraphQL, Spatie Laravel Permission, Multi-Tenant Support, 2FA, Refresh Token System, Device Management, Audit Logging, IP Filtering, Ownership & Row-Level Security.
Laravel Package Enterprise-grade ដែលផ្តល់ Laravel Sanctum Authentication ជាមួយ Lighthouse GraphQL, Spatie Laravel Permission, Multi-Tenant Support, 2FA, Refresh Token System, Device Management, Audit Logging, IP Filtering, Ownership & Row-Level Security។
Features / Features
- ✅ Laravel Sanctum Authentication (SPA + Token) / Authentication Sanctum (SPA + Token)
- ✅ Lighthouse GraphQL (Queries, Mutations, Directives) / Lighthouse GraphQL (Queries, Mutations, Directives)
- ✅ Spatie Laravel Permission (Roles & Permissions) / Spatie Permission (Roles & Permissions)
- ✅ Multi-Tenant Support (Single DB + Multi DB) / ការគាំទ្រ Multi-Tenant (Single DB + Multi DB)
- ✅ 2FA (Google Authenticator) / 2FA (Google Authenticator) - Planned / គ្រោង
- ✅ Refresh Token System / ប្រព័ន្ធ Refresh Token
- ✅ Device Management / ការគ្រប់គ្រង Device
- ✅ Audit Logging System / ប្រព័ន្ធ Audit Logging
- ✅ IP Filtering / ការច្រោះ IP - Planned / គ្រោង
- ✅ Ownership & Row-Level Security / Ownership & Row-Level Security
- ✅ Tenant Resolver (Domain, Header, Token) / Tenant Resolver (Domain, Header, Token)
- ✅ Enterprise Directives / Directives Enterprise:
@hasRole- Role-based access control / ការគ្រប់គ្រងការចូលប្រើប្រាស់ផ្អែកលើ role@hasPermission- Permission-based access control / ការគ្រប់គ្រងការចូលប្រើប្រាស់ផ្អែកលើ permission@ownership- Resource ownership verification / ការផ្ទៀងផ្ទាត់ ownership resource@belongsToTenant- Multi-tenant isolation / ការញែក multi-tenant@audit- Audit logging / Audit logging
Installation / ការដំឡើង
Quick Start / ចាប់ផ្តើមរហ័ស
Configuration / ការកំណត់
Publish the configuration file: Publish file កំណត់:
This will create config/lighthouse-sanctum-auth.php in your application.
នេះនឹងបង្កើត config/lighthouse-sanctum-auth.php ក្នុង application របស់អ្នក។
For detailed configuration options, see Configuration Guide. សម្រាប់ការកំណត់លម្អិត, មើល មគ្គុទេសក៍ការកំណត់។
Usage / ការប្រើ
GraphQL Schema / GraphQL Schema
The package provides authentication mutations and queries: Package ផ្តល់ authentication mutations និង queries:
Authentication Example / ឧទាហរណ៍ Authentication
Directives / Directives
@hasRole
Restrict access to users with specific roles: កំណត់ការចូលប្រើប្រាស់ទៅ users ដែលមាន roles ជាក់លាក់:
@hasPermission
Restrict access to users with specific permissions: កំណត់ការចូលប្រើប្រាស់ទៅ users ដែលមាន permissions ជាក់លាក់:
@ownership
Ensure users can only access resources they own: ធានាថា users អាចចូលប្រើ resources ដែលពួកគេជាម្ចាស់ប៉ុណ្ណោះ:
@belongsToTenant
Ensure resources belong to the current tenant: ធានាថា resources ជាកម្មសិទ្ធិរបស់ tenant បច្ចុប្បន្ន:
@audit
Log field access and mutations: កត់ត្រា field access និង mutations:
Combining Directives / ការរួមបញ្ចូល Directives
You can combine multiple directives for enhanced security: អ្នកអាចរួមបញ្ចូល directives ច្រើនសម្រាប់ security កាន់តែប្រសើរ:
Requirements / តម្រូវការ
- PHP >= 8.2
- Laravel >= 12.0
- Lighthouse >= 6.0
- Sanctum >= 4.0
- Spatie Permission >= 6.0
Documentation / Documentation
Complete documentation is available in the docs directory:
Documentation ពេញលេញមាននៅក្នុង directory docs:
- 📖 មគ្គុទេសក៍ការដំឡើង
- ⚙️ មគ្គុទេសក៍ការកំណត់
- 🔐 មគ្គុទេសក៍ Authentication
- 👥 មគ្គុទេសក៍ Permissions & Roles
- 🎯 មគ្គុទេសក៍ Directives
- 🏢 មគ្គុទេសក៍ Multi-Tenancy
- 📱 មគ្គុទេសក៍ការគ្រប់គ្រង Device
- 🛠️ មគ្គុទេសក៍ Helpers
- 🔧 មគ្គុទេសក៍ Traits & Models
- 📋 មគ្គុទេសក៍ Audit Logging
- 💻 ការរួមបញ្ចូល Frontend
- 📚 ឯកសារ API
- 🐛 ការដោះស្រាយបញ្ហា
Quick Examples / ឧទាហរណ៍រហ័ស
User Model Setup / ការរៀបចំ User Model
Using Helpers / ការប្រើ Helpers
Testing / ការធ្វើតេស្ត
Contributing / ការរួមចំណែក
Contributions are welcome! Please feel free to submit a Pull Request. ការរួមចំណែកត្រូវបានស្វាគមន៍! សូម submit Pull Request។
Changelog / ប្រវត្តិការផ្លាស់ប្តូរ
Please see CHANGELOG.md for more information on what has changed recently. សូមមើល CHANGELOG.md សម្រាប់ព័ត៌មានបន្ថែមអំពីការផ្លាស់ប្តូរថ្មីៗ។
Security / សុវត្ថិភាព
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
ប្រសិនបើអ្នករកឃើញបញ្ហាទាក់ទងនឹងសុវត្ថិភាព, សូមផ្ញើ email ទៅ [email protected] ជំនួសឱ្យការប្រើ issue tracker។
Credits / ការទទួលស្គាល់
- Author: Leap Lyhour
- Email: [email protected]
- License: MIT
License / អាជ្ញាប័ណ្ឌ
This package is open-sourced software licensed under the MIT license. Package នេះជា open-sourced software ដែលមាន license ក្រោម MIT license។
All versions of lighthouse-graphql-sanctum-auth with dependencies
laravel/framework Version ^12.0
laravel/sanctum Version ^4.2
nuwave/lighthouse Version ^6.63
spatie/laravel-permission Version ^6.23