How abdonokra/hotelv1 works
This is a Laravel hotel-management application, not the Laravel framework itself. Guests browse rooms and gallery content, submit booking and contact requests, while administrators manage rooms, bookings, gallery entries, and replies. Web routes dispatch to home or admin controllers; those controllers access Eloquent models and return Blade views. Fortify and Jetstream provide account-management hooks. The graph follows visible controller calls and source-index references; the README documents Laravel generally and does not describe this product, so unshown integrations and storage wiring are omitted.
Main entry points: AdminController.php Admin controller · HomeController.php Home controller · web.php Web routes · User.php User account
Components 18
Web experience
- Web routes
routes/web.php - Home controller
app/Http/Controllers/HomeController.php - Guest pages
resources/views/home
Hotel administration
- Admin controller
app/Http/Controllers/AdminController.php - Admin pages
resources/views/admin - Admin middleware
app/Http/Middleware/Admin.php - Email notification
app/Notifications/SendEmailNotification.php
Hotel records
- Room records
app/Models/Room.php - Booking records
app/Models/Booking.php - Contact records
app/Models/Contact.php - Gallery records
app/Models/Gallary.php
Account services
- User account
app/Models/User.php - Fortify setup
app/Providers/FortifyServiceProvider.php - User registration
app/Actions/Fortify/CreateNewUser.php - Profile updates
app/Actions/Fortify/UpdateUserProfileInformation.php - Jetstream setup
app/Providers/JetstreamServiceProvider.php - Account deletion
app/Actions/Jetstream/DeleteUser.php
Other components
- Guest or admin
Connections 22
- Guest or admin → Web routes: sends request
- Web routes → Home controller: dispatches to
routes/web.php - Web routes → Admin controller: dispatches to
routes/web.php - Home controller → Room records: reads and saves
app/Http/Controllers/HomeController.php - Home controller → Booking records: creates booking
app/Http/Controllers/HomeController.php - Home controller → Contact records: saves message
app/Http/Controllers/HomeController.php - Home controller → Gallery records: reads gallery
app/Http/Controllers/HomeController.php - Home controller → Guest pages: renders
app/Http/Controllers/HomeController.php - Admin controller → Room records: manages rooms
app/Http/Controllers/AdminController.php - Admin controller → Booking records: manages bookings
app/Http/Controllers/AdminController.php - Admin controller → Gallery records: manages gallery
app/Http/Controllers/AdminController.php - Admin controller → Contact records: reads messages
app/Http/Controllers/AdminController.php - Admin controller → User account: checks account
app/Http/Controllers/AdminController.php - Admin controller → Admin pages: renders
app/Http/Controllers/AdminController.php - Admin controller → Email notification: dispatches notification
app/Http/Controllers/AdminController.php - Web routes → Admin middleware: applies gate
- Fortify setup → User registration: registers action
app/Providers/FortifyServiceProvider.php - Fortify setup → Profile updates: registers action
app/Providers/FortifyServiceProvider.php - User registration → User account: creates account
app/Actions/Fortify/CreateNewUser.php - Profile updates → User account: updates account
app/Actions/Fortify/UpdateUserProfileInformation.php - Jetstream setup → Account deletion: registers action
app/Providers/JetstreamServiceProvider.php - Account deletion → User account: deletes account
app/Actions/Jetstream/DeleteUser.php