How shehzadbrohi/igfc works
Karsh Frex Logistic App is a role-based logistics web application for maintaining cargo/container forms and coordinating fleet resources and trips. The apparent user workflow is to sign in, register cargo or container details, manage units and their driver/trailer/container assignments, and maintain trips and trip legs; cargo forms can also be rendered as PDFs with barcode and QR-code identifiers. The excerpts show authentication, cargo-document generation, and container assignment behavior. Other domain areas are represented from the file tree; route-to-controller wiring and their detailed behavior were not sampled.
Main entry points: web.php Web routes · Models Eloquent models · CargoFormController.php Cargo forms · ContainerFormController.php Container forms
Components 19
Access and UI
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - Web routes
routes/web.php - Authentication
app/Http/Controllers/Auth/AuthenticatedSessionController.php - User accounts
app/Http/Controllers/Auth/RegisteredUserController.php - Role-based pages
resources/views/layouts/app.blade.php
Cargo Documents
- Cargo forms
app/Http/Controllers/CargoFormController.php - Container forms
app/Http/Controllers/ContainerFormController.php - PDF labels
app/Http/Controllers/CargoFormController.php - Container PDF
app/Http/Controllers/ContainerFormController.php - Cargo screens
resources/views/cargoforms/index.blade.php - Barcode / QR libraries
Fleet Operations
- Fleet records
app/Http/Controllers/UnitHeadController.php - Drivers and trailers
app/Http/Controllers/DriverController.php - Resource assignments
app/Http/Controllers/UnitContainerAssignmentController.php - Trips and legs
app/Http/Controllers/TripController.php
Persistence
- Eloquent models
app/Models - Application database
config/database.php
Other components
- Admin / client / driver
Connections 27
- Admin / client / driver → HTTP entry: sends request
- HTTP entry → App bootstrap: handles request
- App bootstrap → Web routes: loads routes
- Web routes → Authentication: dispatches auth
- Web routes → User accounts: dispatches registration
- Web routes → Cargo forms: dispatches cargo
- Web routes → Container forms: dispatches container
- Web routes → Fleet records: dispatches fleet
- Web routes → Drivers and trailers: dispatches resources
- Web routes → Resource assignments: dispatches assignments
- Web routes → Trips and legs: dispatches trips
- Authentication → Role-based pages: renders login
- User accounts → Eloquent models: creates user
- Authentication → Eloquent models: authenticates user
- Cargo forms → Eloquent models: reads and writes
- Container forms → Eloquent models: reads and writes
- Cargo forms → Cargo screens: renders screens
- Container forms → Role-based pages: renders form
- Cargo forms → PDF labels: generates label
- Container forms → Container PDF: generates PDF
- PDF labels → Barcode / QR libraries: creates codes
- Container PDF → Barcode / QR libraries: creates codes
- Fleet records → Eloquent models: reads and writes
- Drivers and trailers → Eloquent models: reads and writes
- Resource assignments → Eloquent models: updates assignments
- Trips and legs → Eloquent models: reads and writes
- Eloquent models → Application database: persists records