How karthiksujith/stayzio works
Stayzio is a Laravel hotel-booking application. Guests search properties, inspect details, book dates, complete demo payment, and manage or cancel reservations; hosts manage listings and approve bookings. The graph also includes authentication, profile and chatbot capabilities documented in the README. Controller excerpts support the booking, property and chatbot interactions shown; routes and some controllers are unsampled, so their connections are limited to the documented application flow.
Main entry points: PropertyController.php Property management · web.php Web routes · BookingController.php Booking actions · Property.php Properties
Components 20
Web interface
- Web routes
routes/web.php - Search results
resources/views/home.blade.php - Property details
resources/views/user.blade.php - Booking form
resources/views/booking.blade.php - Payment page
resources/views/payment.blade.php - Profile
resources/views/profile.blade.php - Host dashboard
resources/views/host.blade.php
Property discovery
- Property management
app/Http/Controllers/PropertyController.php - Properties
app/Models/Property.php - Property images
app/Models/PropertyImage.php
Reservations
- Booking actions
app/Http/Controllers/BookingController.php - Demo payment
app/Http/Controllers/PaymentController.php - Reservations
app/Models/Booking.php - Application database
config/database.php
Accounts and assistance
- Authentication
app/Http/Controllers/AuthController.php - User accounts
app/Models/User.php - Chatbot
app/Http/Controllers/ChatbotController.php
Other components
- Guest
- Host
- Gemini API
Connections 26
- Guest → Web routes: sends requests
- Host → Web routes: sends requests
- Web routes → Property management: dispatches property requests
- Web routes → Booking actions: dispatches booking requests
- Web routes → Demo payment: dispatches payment requests
- Web routes → Authentication: dispatches account requests
- Web routes → Chatbot: dispatches chat requests
- Property management → Properties: queries and updates
- Property management → Reservations: checks availability
- Property management → Search results: renders results
- Property management → Property details: renders details
- Property management → Property images: loads images
- Booking actions → Properties: checks property
- Booking actions → Reservations: creates and updates
- Booking actions → Booking form: renders booking
- Demo payment → Reservations: loads and updates
- Demo payment → Payment page: renders payment
- Authentication → User accounts: authenticates users
- Authentication → Profile: renders profile
- Property management → Host dashboard: renders host tools
- Chatbot → Properties: searches listings
- Chatbot → Gemini API: sends prompts
- Properties → Application database: reads and writes
- Property images → Application database: reads and writes
- Reservations → Application database: reads and writes
- User accounts → Application database: reads and writes