How synvera/booking-table-website-resto works
This is a Laravel restaurant-reservation application: customers progress through booking details, table selection, contact information, special requests, and deposit payment; cashiers review and manage bookings. The graph reflects the sampled controller and service calls plus route/controller references in the source index. Some views, route definitions, and model implementations were not excerpted, so unverified links are omitted; the README describes Laravel generally rather than application-specific capabilities.
Main entry points: ReservationController.php Reservation controller · MidtransService.php Midtrans integration · web.php Web routes · Reservation.php Reservations
Components 19
Reservation workflow
- Reservation controller
app/Http/Controllers/ReservationController.php - Stage-one validation
app/Http/Requests/StoreStageOneRequest.php - Booking stages
resources/views/stages - Landing page
resources/views/landing.blade.php - Reservations
app/Models/Reservation.php - Restaurant tables
app/Models/RestaurantTable.php - Booking history
resources/views/history.blade.php
Payments
- Payment records
app/Models/ReservationPayment.php - Midtrans integration
app/Services/MidtransService.php
Cashier operations
- Cashier controller
app/Http/Controllers/CashierController.php - Cashier interface
resources/views/cashier.blade.php
Application runtime
- Web routes
routes/web.php - Laravel bootstrap
bootstrap/app.php - Base controller
app/Http/Controllers/Controller.php - Application provider
app/Providers/AppServiceProvider.php - User account model
app/Models/User.php - User factory
database/factories/UserFactory.php
Other components
- Customer
- Midtrans
Connections 19
- Customer → Web routes: submits requests
- Web routes → Reservation controller: routes to
routes/web.php - Web routes → Cashier controller: routes to
routes/web.php - Reservation controller → Stage-one validation: validates with
app/Http/Controllers/ReservationController.php - Reservation controller → Reservations: reads and updates
app/Http/Controllers/ReservationController.php - Reservation controller → Restaurant tables: checks tables
app/Http/Controllers/ReservationController.php - Reservation controller → Booking stages: renders stages
app/Http/Controllers/ReservationController.php - Reservation controller → Landing page: renders landing
app/Http/Controllers/ReservationController.php - Reservation controller → Midtrans integration: starts payment
app/Http/Controllers/ReservationController.php - Reservation controller → Payment records: looks up payment
app/Http/Controllers/ReservationController.php - Reservation controller → Booking history: renders history
app/Http/Controllers/ReservationController.php - Midtrans integration → Payment records: creates and updates
app/Services/MidtransService.php - Midtrans integration → Reservations: checks reservation
app/Services/MidtransService.php - Midtrans integration → Midtrans: sends API requests
app/Services/MidtransService.php - Payment records → Reservations: belongs to
app/Models/ReservationPayment.php - Cashier controller → Reservations: reads and deletes
app/Http/Controllers/CashierController.php - Cashier controller → Cashier interface: renders interface
app/Http/Controllers/CashierController.php - Laravel bootstrap → Web routes: loads routes
bootstrap/app.php - User factory → User account model: creates users
database/factories/UserFactory.php