How phanithly-ly/hotel-management-system works
Hotel Management System is a Laravel hotel-room administration web app. Users register or log in, manage room types and rooms, then view dashboard statistics and a floor map; authenticated users can also maintain account details and profile photos. The graph separates routing/authentication, hotel operations, account features, and the Blade interface. Controller/model links are supported by sampled source references; dashboard and interface capabilities are included as documented in the README, so some view-level links use that evidence rather than inspected templates.
Main entry points: web.php Web routes · ProfileController.php Profile management · auth.php Authentication routes · DashboardController.php Dashboard metrics
Components 23
Routing and access
- Web routes
routes/web.php - Authentication routes
routes/auth.php - Sessions and registration
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Login validation
app/Http/Requests/Auth/LoginRequest.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Email verification
app/Http/Controllers/Auth/VerifyEmailController.php
Hotel operations
- Dashboard metrics
app/Http/Controllers/DashboardController.php - Room management
app/Http/Controllers/RoomController.php - Room type management
app/Http/Controllers/RoomTypeController.php - Rooms
app/Models/Room.php - Room types
app/Models/RoomType.php
Account management
- Profile management
app/Http/Controllers/ProfileController.php - Profile validation
app/Http/Requests/ProfileUpdateRequest.php - User accounts
app/Models/User.php - Locale middleware
app/Http/Middleware/SetLocale.php
Web interface
- Dashboard and room map
resources/views/dashboard.blade.php - Room listing and forms
resources/views/rooms/index.blade.php - Room type listing and forms
resources/views/room-types/index.blade.php - Profile screens
resources/views/profile/edit.blade.php - Authentication screens
resources/views/auth/login.blade.php
Other components
- Visitor or staff
- MySQL database
- Public photo storage
Connections 27
- Visitor or staff → Web routes: opens pages
README.md - Web routes → Dashboard metrics: routes to
routes/web.php - Web routes → Room management: routes to
routes/web.php - Web routes → Room type management: routes to
routes/web.php - Web routes → Profile management: routes to
routes/web.php - Visitor or staff → Authentication routes: registers or logs in
routes/auth.php - Authentication routes → Sessions and registration: routes to
routes/auth.php - Sessions and registration → Login validation: authenticates with
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Authentication routes → Registration: routes to
routes/auth.php - Registration → User accounts: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Authentication routes → Email verification: routes to
routes/auth.php - Room management → Rooms: queries and updates
app/Http/Controllers/RoomController.php - Room management → Room types: loads type options
app/Http/Controllers/RoomController.php - Room type management → Room types: queries and updates
app/Http/Controllers/RoomTypeController.php - Dashboard metrics → Rooms: reads statistics
app/Http/Controllers/DashboardController.php - Dashboard metrics → Room types: reads statistics
app/Http/Controllers/DashboardController.php - Profile management → Profile validation: validates with
app/Http/Controllers/ProfileController.php - Profile management → User accounts: updates account
app/Http/Controllers/ProfileController.php - Profile management → Public photo storage: stores or deletes photo
app/Http/Controllers/ProfileController.php - Web routes → Locale middleware: applies middleware
- Dashboard metrics → Dashboard and room map: presents metrics
README.md - Room management → Room listing and forms: renders listing
app/Http/Controllers/RoomController.php - Room type management → Room type listing and forms: renders listing
app/Http/Controllers/RoomTypeController.php - Profile management → Profile screens: renders profile
app/Http/Controllers/ProfileController.php - Sessions and registration → Authentication screens: renders login
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Rooms → MySQL database: persists room data
- Room types → MySQL database: persists type data