How bigst3pper/smart_parking_system works
ParkSmart is a Laravel parking-reservation application. A user registers or signs in, browses available slots, books one, tracks elapsed time and cost, then ends the reservation and completes simulated pay-on-exit; reservation completion releases the slot. Admin capabilities include slot, reservation, user, and report management, though the README describes them as incomplete. The graph emphasizes documented workflows and sampled controller/model calls; several route files and admin components were not sampled, so their connections are not inferred.
Main entry points: User.php User accounts · Reservation.php Reservations · ParkingSlot.php Parking slots · ReservationController.php Reservation management
Components 20
Web entry and identity
- Laravel entry
public/index.php - App bootstrap
bootstrap/app.php - Auth routes
routes/auth.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Session login
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Email verification
app/Http/Controllers/Auth/VerifyEmailController.php
Parking and reservations
- Slot browsing
app/Http/Controllers/User/SlotController.php - Booking and checkout
app/Http/Controllers/User/ReservationController.php - Payment handling
app/Http/Controllers/User/PaymentController.php
Domain records
- User accounts
app/Models/User.php - Parking slots
app/Models/ParkingSlot.php - Reservations
app/Models/Reservation.php - Payment records
app/Models/Payment.php - Vehicles
app/Models/Vehicle.php - Service ratings
app/Models/ServiceRating.php
Administration
- Slot management
app/Http/Controllers/Admin/ParkingSlotController.php - Reservation management
app/Http/Controllers/Admin/ReservationController.php - Reports
app/Http/Controllers/Admin/ReportController.php - User management
app/Http/Controllers/Admin/UserController.php
Other components
- User
Connections 34
- Laravel entry → App bootstrap: loads app
public/index.php - App bootstrap → Auth routes: registers routes
bootstrap/app.php - User → Registration: registers
- Auth routes → Registration: routes to
routes/auth.php - Auth routes → Session login: routes to
routes/auth.php - Auth routes → Email verification: routes to
routes/auth.php - Registration → User accounts: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - User → Slot browsing: browses slots
README.md - Slot browsing → Parking slots: queries slots
app/Http/Controllers/User/SlotController.php - User → Booking and checkout: books slot
README.md - Booking and checkout → Reservations: reads and updates
app/Http/Controllers/User/ReservationController.php - Booking and checkout → Parking slots: releases slot
app/Http/Controllers/User/ReservationController.php - Booking and checkout → Payment records: uses payment record
app/Http/Controllers/User/ReservationController.php - User → Payment handling: pays on exit
README.md - Slot management → Parking slots: manages slots
app/Http/Controllers/Admin/ParkingSlotController.php - Reservation management → Reservations: creates and updates
app/Http/Controllers/Admin/ReservationController.php - Reservation management → Parking slots: updates occupancy
app/Http/Controllers/Admin/ReservationController.php - Reservation management → User accounts: finds or creates
app/Http/Controllers/Admin/ReservationController.php - Reservation management → Vehicles: finds or creates
app/Http/Controllers/Admin/ReservationController.php - Reports → Reservations: reports on
app/Http/Controllers/Admin/ReportController.php - Reports → Parking slots: reports on
app/Http/Controllers/Admin/ReportController.php - Reports → User accounts: reports on
app/Http/Controllers/Admin/ReportController.php - Reports → Vehicles: reports on
app/Http/Controllers/Admin/ReportController.php - User management → User accounts: manages users
- Reservations → User accounts: belongs to
app/Models/Reservation.php - Reservations → Parking slots: belongs to
app/Models/Reservation.php - Reservations → Vehicles: belongs to
app/Models/Reservation.php - Reservations → Payment records: has payment
app/Models/Reservation.php - User accounts → Vehicles: has vehicles
app/Models/User.php - User accounts → Reservations: has reservations
app/Models/User.php - User accounts → Payment records: has payments
app/Models/User.php - Parking slots → Service ratings: has ratings
app/Models/ParkingSlot.php - Service ratings → User accounts: belongs to
app/Models/ServiceRating.php - Service ratings → Parking slots: belongs to
app/Models/ServiceRating.php