How kapilkapilesan/lobby works
This is a multi-tenant hotel operations application. The principal workflow is hotel staff managing reservations and guest stays against branch-specific room and customer data; guests also have self-check-in and room-chat entry points. Platform administration provisions companies and plans, while tenant context and dynamically configured branch databases underpin operations. The tree indicates additional housekeeping, maintenance, payments, reporting, staffing, restaurant, and vehicle-rental capabilities. The README contains no usable product description, so those branches are identified from the source tree; links are limited to relationships shown in excerpts or the source index.
Main entry points: BranchDatabaseManager.php Branch database manager · BookingController.php Booking management · CompanyRegistrationController.php Company onboarding · SelfCheckInController.php Self check-in
Components 31
Tenant platform
- Company onboarding
Http/Controllers/Auth/CompanyRegistrationController.php - Platform management
Http/Controllers/Platform - Company tenant
Models/Company.php - Plans and subscriptions
Models/Plan.php - Branch registry
Models/Branch.php - Branch database manager
Services/BranchDatabaseManager.php - Tenant context
Services/TenantContext.php - Branch data models
Models/BranchModel.php - Tenant resolution
Http/Middleware - Authentication
Http/Controllers/AuthController.php
Hotel operations
- Booking management
Http/Controllers/Admin/BookingController.php - Bookings and stays
Models/Booking.php - Rooms and availability
Models/Room.php - Customer management
Http/Controllers/Admin/CustomerController.php - Customer records
Models/Customer.php - Customer wallet
Models/CustomerWallet.php - Hotel admin features
Http/Controllers/Admin - Restaurant operations
Models/Restaurant.php
Guest services
- Self check-in
Http/Controllers/SelfCheckInController.php - Check-in assistance
Services/SelfCheckInAiService.php - Guest room chat
Http/Controllers/RoomChatController.php - Room chat orders
Models/RoomChatOrder.php - Chat assistance
Services/RoomChatAiService.php
Integrations and workforce
- SMS notifications
Services/SmsService.php - SMS provider
- Staff and housekeeping
Http/Controllers/Admin - API usage logging
Models/ApiUsageLog.php - Safe data encryption
Casts/SafeEncrypted.php
Other components
- Hotel staff
- Platform admin
- Hotel guest
Connections 34
- Platform admin → Platform management: manages
- Company onboarding → Company tenant: registers
Http/Controllers/Auth/CompanyRegistrationController.php - Company onboarding → Plans and subscriptions: selects plan
Http/Controllers/Auth/CompanyRegistrationController.php - Company onboarding → Branch registry: creates branch
Http/Controllers/Auth/CompanyRegistrationController.php - Company onboarding → Branch database manager: provisions database
Http/Controllers/Auth/CompanyRegistrationController.php - Platform management → Company tenant: manages
Http/Controllers/Platform/CompanyController.php - Platform management → Plans and subscriptions: manages
Http/Controllers/Platform/SubscriptionController.php - Company tenant → Plans and subscriptions: checks features
Models/Company.php - Branch registry → Branch database manager: configures
Services/BranchDatabaseManager.php - Branch database manager → Tenant context: sets connection
Services/BranchDatabaseManager.php - Branch data models → Tenant context: gets connection
Models/BranchModel.php - Branch data models → Branch database manager: configures binding
Models/BranchModel.php - Tenant resolution → Branch database manager: sets branch database
Http/Middleware/SetBranchDatabase.php - Authentication → Branch registry: resolves branch
Http/Controllers/AuthController.php - Hotel staff → Booking management: manages stays
- Booking management → Bookings and stays: updates bookings
Http/Controllers/Admin/BookingController.php - Booking management → Rooms and availability: checks room
Http/Controllers/Admin/BookingController.php - Booking management → SMS notifications: sends updates
Http/Controllers/Admin/BookingController.php - Bookings and stays → Rooms and availability: belongs to
Models/Booking.php - Booking management → Hotel admin features: supports operations
- Hotel admin features → Staff and housekeeping: manages tasks
- Customer management → Customer records: manages records
Http/Controllers/Admin/CustomerController.php - Customer management → Customer wallet: uses wallet
Http/Controllers/Admin/CustomerController.php - Customer records → Safe data encryption: encrypts fields
Models/Customer.php - Hotel guest → Self check-in: checks in
- Self check-in → Bookings and stays: resolves booking
Http/Controllers/SelfCheckInController.php - Self check-in → Check-in assistance: uses assistance
Http/Controllers/SelfCheckInController.php - Self check-in → API usage logging: logs usage
Http/Controllers/SelfCheckInController.php - Hotel guest → Guest room chat: uses chat
- Guest room chat → Bookings and stays: resolves stay
Http/Controllers/RoomChatController.php - Guest room chat → Room chat orders: uses orders
Http/Controllers/RoomChatController.php - Guest room chat → Restaurant operations: loads menu
Http/Controllers/RoomChatController.php - SMS notifications → Branch database manager: loads settings
Services/SmsService.php - SMS notifications → SMS provider: sends messages
Services/SmsService.php