How aredo97/cadilax_api works
This Laravel API implements a wallet-based color-guessing game: users create an open game with a stake, another user challenges it, and the result resolves the game and updates balances and transaction records. The tree also shows account and role management, invitations, hints, guidance and inquiry support, notifications, platform settings and revenue, and audit reporting. Sampled controllers confirm key game, authentication, and user-management calls; other subsystem links reflect their listed controller/model responsibilities, not inspected call wiring.
Main entry points: GameInvitationsController.php Game Invitations · GameChallengerController.php Game Challenges · AuthController.php Authentication · api.php API Routes
Components 23
Access and Accounts
- Authentication
app/Http/Controllers/auth/AuthController.php - User Management
app/Http/Controllers/api/UserController.php - User Accounts
app/Models/User.php
Game Lifecycle
- Game Operations
app/Http/Controllers/api/GameController.php - Game Challenges
app/Http/Controllers/api/GameChallengerController.php - Game Invitations
app/Http/Controllers/api/GameInvitationsController.php - Games
app/Models/Game.php - Challenge Records
app/Models/GameChallenger.php - Invitation Records
app/Models/GameInvitation.php - Hints
app/Models/Hint.php
Wallet and Revenue
- Stake Options
app/Models/Stake.php - Wallets
app/Models/Wallet.php - Wallet Transactions
app/Models/WalletTransaction.php - Platform Revenue
app/Models/PlatformRevenue.php - Platform Settings
app/Models/PlatformSetting.php
Support and Operations
- Guidance Requests
app/Http/Controllers/api/GuidanceRequestsController.php - Inquiries
app/Http/Controllers/api/InquiryController.php - Notifications
app/Notifications - Audit Logs
app/Models/AuditLog.php - Database Configuration
config/database.php
Other components
- Player / Admin
- API Routes
routes/api.php - Google OAuth
Connections 32
- Player / Admin → API Routes: sends API requests
- API Routes → Authentication: routes auth requests
- API Routes → User Management: routes user requests
- API Routes → Game Operations: routes game requests
- API Routes → Game Challenges: routes challenges
- API Routes → Game Invitations: routes invitations
- Authentication → User Accounts: creates and finds
- Authentication → Wallets: creates wallet
- Authentication → Audit Logs: records actions
- Authentication → Notifications: notifies admins
- Authentication → Google OAuth: uses OAuth
- User Management → User Accounts: reads and updates
- User Management → Audit Logs: records changes
- Game Operations → Games: creates and updates
- Game Operations → Stake Options: looks up stake
- Game Operations → Wallets: debits and refunds
- Game Operations → Hints: associates hint
- Game Challenges → Games: locks and reads
- Game Challenges → Challenge Records: creates challenge
- Game Challenges → Wallets: debits and credits
- Game Challenges → Platform Settings: reads fee rate
- Game Challenges → Platform Revenue: collects fees
- Game Challenges → Wallet Transactions: records outcomes
- Game Invitations → Invitation Records: reads invitations
- Game Invitations → Games: reads game
- Game Invitations → Challenge Records: creates challenge
- Game Invitations → Wallets: debits and credits
- Game Invitations → Platform Settings: reads fee rate
- Game Invitations → Platform Revenue: collects fees
- Game Invitations → Wallet Transactions: records outcomes
- Game Invitations → Notifications: notifies invitee
- Database Configuration → User Accounts: configures persistence