How lilmeanieee/loading works
This is a PA FUEL 118 operations web application, migrated from standalone PHP pages into Laravel routes and controllers while retaining legacy business logic. Users authenticate, then work with loading tickets, authority-to-withdraw requests, tank planning, operational history, messages, live status, and administration. The route map and sampled controller/library excerpts establish the main dispatch and some domain calls; unsampled modules are represented by their exact paths, without assuming their internal relationships.
Main entry points: web.php Web routes · LegacyController.php Legacy adapter · loading_ticket_lib.php Ticket rules · common_lib.php Shared legacy logic
Components 24
Web entry
- Web routes
routes/web.php - Legacy adapter
app/Http/Controllers/LegacyController.php - Request bridge
app/Support/Legacy/bridge.php
Identity and access
- Login
app/Http/Controllers/LoginController.php - OTP verification
app/Http/Controllers/OtpVerifyController.php - User administration
app/Http/Controllers/UsersController.php - User model
app/Models/User.php - Security helpers
app/Support/Legacy/security.php
Fuel operations
- Loading tickets
app/Http/Controllers/LoadingTicketController.php - Ticket rules
app/Support/Legacy/loading_ticket_lib.php - Tank inventory
app/Support/Legacy/tank_store.php - Recent loads
app/Support/Legacy/recent_load_store.php - Tank planner
app/Http/Controllers/FuelTankLoadingPlannerController.php
Authority workflow
- Authority requests
app/Http/Controllers/AuthorityRequestsController.php - Withdraw requests
app/Http/Controllers/AuthorityWithdrawController.php - Authority rules
app/Support/Legacy/authority_lib.php
Operations oversight
- Loading history
app/Http/Controllers/HistoryController.php - Dashboard
app/Http/Controllers/DashboardController.php - Messaging
app/Http/Controllers/MessagesController.php - Audit log
app/Http/Controllers/AuditLogController.php - Live status
app/Http/Controllers/LiveStatusController.php - Shared legacy logic
app/Support/Legacy/common_lib.php - PDO database access
app/Support/Legacy/database.php
Other components
- Staff user
Connections 31
- Staff user → Web routes: sends requests
routes/web.php - Web routes → Login: routes to
routes/web.php - Web routes → OTP verification: routes to
routes/web.php - Web routes → User administration: routes to
routes/web.php - Web routes → Loading tickets: routes to
routes/web.php - Web routes → Tank planner: routes to
routes/web.php - Web routes → Authority requests: routes to
routes/web.php - Web routes → Withdraw requests: routes to
routes/web.php - Web routes → Loading history: routes to
routes/web.php - Web routes → Dashboard: routes to
routes/web.php - Web routes → Messaging: routes to
routes/web.php - Web routes → Audit log: routes to
routes/web.php - Web routes → Live status: routes to
routes/web.php - Login → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Loading tickets → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Loading tickets → Ticket rules: builds tickets
app/Http/Controllers/LoadingTicketController.php - Ticket rules → Shared legacy logic: uses helpers
app/Support/Legacy/loading_ticket_lib.php - Ticket rules → Tank inventory: uses inventory
app/Support/Legacy/loading_ticket_lib.php - Ticket rules → Recent loads: uses load history
app/Support/Legacy/loading_ticket_lib.php - Authority requests → Authority rules: reviews requests
app/Http/Controllers/AuthorityRequestsController.php - Authority rules → Shared legacy logic: uses helpers
app/Support/Legacy/authority_lib.php - User administration → User model: uses model
app/Http/Controllers/UsersController.php - Shared legacy logic → PDO database access: uses PDO access
app/Support/Legacy/common_lib.php - Shared legacy logic → Security helpers: uses security
app/Support/Legacy/common_lib.php - Legacy adapter → Request bridge: begins and finishes
app/Http/Controllers/LegacyController.php - Withdraw requests → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Loading history → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Dashboard → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Messaging → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Audit log → Legacy adapter: extends
app/Http/Controllers/LegacyController.php - Live status → Legacy adapter: extends
app/Http/Controllers/LegacyController.php