How webenred/agency-project works
Agency mini project is a Laravel application with hotel administration and account workflows; its models also indicate booking and trip domains. The visible workflow is request routing into controllers, which validate user or hotel data, update models, and return views or API responses. Registration emits an event that the configured listener uses for email verification. Booking and trip components are included as model-backed domain areas, but their behavior and connections are not shown in the sampled source.
Main entry points: RouteServiceProvider.php Route registration · RegisteredUserController.php User registration · RegistrationEvent.php Registration event · EventServiceProvider.php Event wiring
Components 20
Application entry
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - HTTP kernel
app/Http/Kernel.php - Route registration
app/Providers/RouteServiceProvider.php - Auth routes
routes/auth.php - Web and API routes
routes/web.php
Accounts and verification
- User registration
app/Http/Controllers/Auth/RegisteredUserController.php - User account
app/Models/User.php - Registration event
app/Events/RegistrationEvent.php - Event wiring
app/Providers/EventServiceProvider.php - Verification listener
app/Listeners/SendEmailVerificationNotif.php - Email verification
app/Notifications/VerifyEmailNotification.php - Verification mail
app/Mail/VerificationMail.php - API authentication
app/Http/Controllers/Api/AuthController.php
Agency operations
- Hotel administration
app/Http/Controllers/Admin/HotelController.php - Hotel records
app/Models/Hotel.php - Hotel admin views
resources/views/admin/manage-hotels.blade.php
Travel domain
- Booking records
app/Models/Booking.php - Trip records
app/Models/Trip.php
Other components
- Visitor
Connections 17
- Visitor → HTTP entry: sends request
public/index.php - HTTP entry → App bootstrap: loads app
public/index.php - App bootstrap → HTTP kernel: binds kernel
bootstrap/app.php - HTTP kernel → Route registration: handles requests
- Route registration → Auth routes: registers routes
app/Providers/RouteServiceProvider.php - Route registration → Web and API routes: registers routes
app/Providers/RouteServiceProvider.php - Auth routes → User registration: routes registration
routes/auth.php - User registration → User account: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - User registration → Registration event: dispatches event
app/Http/Controllers/Auth/RegisteredUserController.php - Event wiring → Registration event: registers event
app/Providers/EventServiceProvider.php - Event wiring → Verification listener: registers listener
app/Providers/EventServiceProvider.php - Verification listener → Email verification: sends notification
app/Listeners/SendEmailVerificationNotif.php - Email verification → Verification mail: builds mail
app/Notifications/VerifyEmailNotification.php - API authentication → User account: authenticates user
app/Http/Controllers/Api/AuthController.php - API authentication → Registration event: dispatches event
app/Http/Controllers/Api/AuthController.php - Hotel administration → Hotel records: creates and updates
app/Http/Controllers/Admin/HotelController.php - Hotel administration → Hotel admin views: renders view
app/Http/Controllers/Admin/HotelController.php