How rowannnk/foodshare works
FoodLoop is a Laravel surplus-food donation and reservation application. Donors publish surplus food; recipients browse listings, reserve quantities, and coordinate collection, while visitors browse public pages and admins manage platform data. The graph preserves these documented stages and the authentication/profile workflow, plus the model-backed data layer. The tree and excerpts do not include implementation for several documented domain areas, so those are represented at their enclosing controller directory; their links rely on README statements rather than inspected controller code.
Main entry points: web.php Web routes · Controllers Admin management · FoodListing.php Food listing · auth.php Auth routes
Components 27
Web entry
- Web routes
routes/web.php - Public pages
resources/views/welcome.blade.php - Welcome handler
app/Http/Controllers/WelcomeController.php
Identity and profile
- Auth routes
routes/auth.php - Login and registration
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Login validation
app/Http/Requests/Auth/LoginRequest.php - Email verification
app/Http/Controllers/Auth/VerifyEmailController.php - Profile management
app/Http/Controllers/Userzone/ProfileController.php - Profile validation
app/Http/Requests/ProfileUpdateRequest.php
Food exchange
- Organizations
app/Http/Controllers - Food listings
app/Http/Controllers - Reservations
app/Http/Controllers - Pickup confirmation
app/Http/Controllers - Admin management
app/Http/Controllers
Domain data
- Domain models
app/Models - User
app/Models/User.php - Organization
app/Models/Organization.php - Food listing
app/Models/FoodListing.php - Food category
app/Models/FoodCategory.php - Reservation
app/Models/Reservation.php - Pickup
app/Models/Pickup.php - SQLite database
Other components
- Visitor
- Donor
- Recipient
- Admin
Connections 35
- Visitor → Web routes: requests pages
README.md - Donor → Web routes: uses platform
README.md - Recipient → Web routes: uses platform
README.md - Admin → Web routes: uses platform
README.md - Web routes → Welcome handler: routes home
routes/web.php - Welcome handler → Public pages: renders
- Web routes → Auth routes: loads auth routes
routes/web.php - Auth routes → Login and registration: dispatches login
routes/auth.php - Auth routes → Registration: dispatches registration
routes/auth.php - Auth routes → Email verification: dispatches verification
routes/auth.php - Login and registration → Login validation: authenticates with
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration → User: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Web routes → Profile management: routes profile
routes/web.php - Profile management → Profile validation: validates updates
app/Http/Controllers/Userzone/ProfileController.php - Donor → Organizations: manages organizations
README.md - Donor → Food listings: publishes listings
README.md - Recipient → Food listings: browses listings
README.md - Recipient → Reservations: reserves quantity
README.md - Donor → Pickup confirmation: confirms collection
README.md - Admin → Admin management: manages platform
README.md - Organizations → Organization: manages records
- Food listings → Food listing: manages records
- Food listings → Food category: uses categories
README.md - Reservations → Reservation: manages records
- Pickup confirmation → Pickup: records collection
- Admin management → User: manages users
README.md - Admin management → Organization: manages organizations
README.md - Admin management → Food category: manages categories
README.md - Admin management → Food listing: manages listings
README.md - User → Organization: has organizations
app/Models/User.php - Organization → Food listing: has listings
app/Models/Organization.php - Food listing → Food category: belongs to category
app/Models/FoodListing.php - Food listing → Reservation: has reservations
app/Models/FoodListing.php - Reservation → Pickup: has pickup
app/Models/Reservation.php - Domain models → SQLite database: persists records