How decastroaldwin0/decastro-milomarathon works
This is a Laravel web app for managing marathon runner registrations. A visitor opens the registration form; the controller validates and creates a registration, then redirects to the participant list. Staff can search, view, edit, and delete registrations. The graph shows the routes, controller, model, and views as supported by the excerpts. The registration table is represented by its migration, but the model-to-database link is dashed because the migration was not excerpted. User account scaffolding is separate from this workflow.
Main entry points: RegistrationController.php Registration controller · web.php Web routes · index.php HTTP entry · app.php App bootstrap
Components 12
Web entry
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - Web routes
routes/web.php
Registration workflow
- Registration controller
app/Http/Controllers/RegistrationController.php - Registration form
resources/views/partials/register.blade.php - Edit form
resources/views/partials/editregister.blade.php - Registration list
resources/views/partials/registrations.blade.php
Data layer
- Registration model
app/Models/Registration.php - Registration table
database/migrations/2026_05_17_060625_create_registrations_table.php
Account support
- User model
app/Models/User.php - User factory
database/factories/UserFactory.php
Other components
- Visitor or staff
Connections 11
- Visitor or staff → HTTP entry: sends requests
public/index.php - HTTP entry → App bootstrap: loads app
public/index.php - App bootstrap → Web routes: configures routing
bootstrap/app.php - Web routes → Registration controller: dispatches requests
routes/web.php - Registration controller → Registration model: reads and writes
app/Http/Controllers/RegistrationController.php - Registration controller → Registration form: renders form
app/Http/Controllers/RegistrationController.php - Registration controller → Edit form: renders editor
app/Http/Controllers/RegistrationController.php - Registration controller → Registration list: renders results
app/Http/Controllers/RegistrationController.php - Edit form → Web routes: submits update
resources/views/partials/editregister.blade.php - Registration model → Registration table: persists records
- User factory → User model: creates test users
database/factories/UserFactory.php