How c20246068paclibar-source/ccad-midterm-paclibar works
This Laravel/Inertia application manages film equipment inventory and dispatches, with authentication and a React interface. The main operational flow is a request routed to the dispatch controller, which validates availability, calculates rental fees, and updates dispatch and asset state; the controller also loads dispatch records and related production/technician data for Inertia pages. The tree indicates a separate maintenance-record domain, but its implementation details are not shown. Edges are limited to relationships visible in the supplied excerpts or SOURCE INDEX.
Main entry points: AssetDispatch.php Asset dispatch · MaintenanceRecordController.php Dispatch lifecycle · auth.php Authentication routes · FilmAsset.php Film asset
Components 21
Equipment operations
- Film asset routes
routes/web.php - Film asset management
app/Http/Controllers/FilmAssetController.Php - Dispatch lifecycle
app/Http/Controllers/MaintenanceRecordController.php - Film asset
app/Models/FilmAsset.php - Asset dispatch
app/Models/AssetDispatch.php - Production
app/Models/Production.php - Technician
app/Models/Technician.php - Maintenance records
app/Models/MaintenaceRecord.php
Identity and access
- Authentication routes
routes/auth.php - Session authentication
app/Http/Controllers/Auth/AuthenticatedSessionController.php - User registration
app/Http/Controllers/Auth/RegisteredUserController.php - Email verification
app/Http/Controllers/Auth/VerifyEmailController.php - User account
app/Models/User.php - Login validation
app/Http/Requests/Auth/LoginRequest.php
Web interface
- Inertia React entry
resources/js/app.tsx - Film asset page
resources/js/pages/FilmAssets/index.tsx - Appearance settings
resources/js/hooks/use-appearance.tsx - Application logo
resources/js/components/app-logo-icon.tsx
Request framework
- Inertia middleware
app/Http/Middleware/HandleInertiaRequests.php - Application setup
bootstrap/app.php
Other components
- User
Connections 22
- User → Film asset routes: requests
- Film asset routes → Film asset management: routes to
routes/web.php - Film asset management → Film asset: reads and writes
app/Http/Controllers/FilmAssetController.Php - Film asset management → Asset dispatch: checks dispatches
app/Http/Controllers/FilmAssetController.Php - Dispatch lifecycle → Asset dispatch: creates and updates
app/Http/Controllers/MaintenanceRecordController.php - Dispatch lifecycle → Film asset: checks and updates
app/Http/Controllers/MaintenanceRecordController.php - Dispatch lifecycle → Production: loads
app/Http/Controllers/MaintenanceRecordController.php - Dispatch lifecycle → Technician: loads
app/Http/Controllers/MaintenanceRecordController.php - Asset dispatch → Film asset: belongs to
app/Models/AssetDispatch.php - Asset dispatch → Production: belongs to
app/Models/AssetDispatch.php - Asset dispatch → Technician: belongs to
app/Models/AssetDispatch.php - Maintenance records → Film asset: references
app/Models/MaintenaceRecord.php - Maintenance records → Technician: references
app/Models/MaintenaceRecord.php - User → Authentication routes: requests access
- Authentication routes → Session authentication: routes to
routes/auth.php - Authentication routes → User registration: routes to
routes/auth.php - Authentication routes → Email verification: routes to
routes/auth.php - Session authentication → Login validation: authenticates with
app/Http/Controllers/Auth/AuthenticatedSessionController.php - User registration → User account: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Application setup → Inertia middleware: registers
bootstrap/app.php - Inertia React entry → Appearance settings: initializes theme
resources/js/app.tsx - Inertia React entry → Film asset page: resolves pages
resources/js/app.tsx