# thescreechingbagel/spacechan architecture

> Architecture diagram of the GitHub repository thescreechingbagel/spacechan, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thescreechingbagel/spacechan
- Repository: https://github.com/thescreechingbagel/spacechan

## Overview

This repository is an educational Laravel starter application, with a user-facing workflow for registration or login, email verification, and access to a dashboard and profile management. Routes dispatch requests to controllers; controllers validate or update user data and render Blade views. The README also documents configurable local-development defaults and a front-end asset fallback, but build tooling is outside this runtime map. Some authentication capabilities are route-registered but their controller implementations are absent from the supplied tree; edges show only relationships supported by the supplied excerpts or source index.

Main entry points: [`routes/auth.php`](https://github.com/thescreechingbagel/spacechan/blob/main/routes/auth.php) (Auth routes), [`routes/web.php`](https://github.com/thescreechingbagel/spacechan/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/Userzone/ProfileController.php`](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Userzone/ProfileController.php) (Profile management), [`app/Models/User.php`](https://github.com/thescreechingbagel/spacechan/blob/main/app/Models/User.php) (User account)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["HTTP routing"]
  node_front["HTTP entry<br/>[index.php]"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
end

subgraph group_identity["Authentication"]
  node_register["Registration"]
  node_login["Login and logout"]
  node_login_request["Login validation<br/>[LoginRequest.php]"]
  node_verification["Email verification"]
  node_verification_notice["Verification notices"]
  node_verification_send["Resend verification"]
  node_user[("User account<br/>[User.php]")]
end

subgraph group_userzone["User area"]
  node_dashboard["Dashboard handler"]
  node_profile["Profile management"]
  node_profile_validation["Profile validation"]
  node_welcome["Welcome page handler"]
end

subgraph group_presentation["Blade interface"]
  node_login_view["Login and register views<br/>[login.blade.php]"]
  node_verification_view["Verification view"]
  node_dashboard_view["Dashboard view"]
  node_profile_view["Profile views<br/>[edit.blade.php]"]
  node_welcome_view["Welcome view<br/>[welcome.blade.php]"]
end

subgraph group_runtime["Application runtime"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
end

node_visitor(("Visitor"))

node_visitor -->|"sends requests"| node_front
node_front -->|"starts app"| node_bootstrap
node_bootstrap -->|"loads routes"| node_web_routes
node_web_routes -->|"includes routes"| node_auth_routes
node_web_routes -->|"dispatches"| node_dashboard
node_web_routes -->|"dispatches"| node_profile
node_web_routes -->|"dispatches"| node_welcome
node_auth_routes -->|"dispatches"| node_register
node_auth_routes -->|"dispatches"| node_login
node_auth_routes -->|"dispatches"| node_verification
node_auth_routes -->|"dispatches"| node_verification_notice
node_auth_routes -->|"dispatches"| node_verification_send
node_login -->|"authenticates with"| node_login_request
node_register -->|"creates account"| node_user
node_verification -->|"marks verified"| node_user
node_register -->|"renders"| node_login_view
node_login -->|"renders"| node_login_view
node_dashboard -->|"renders"| node_dashboard_view
node_profile -->|"validates with"| node_profile_validation
node_profile -->|"renders"| node_profile_view
node_profile -->|"updates account"| node_user
node_welcome -->|"renders"| node_welcome_view
node_verification_notice -.->|"renders"| node_verification_view
node_verification_send -.->|"notifies account"| node_user

click node_front "https://github.com/thescreechingbagel/spacechan/blob/main/public/index.php"
click node_bootstrap "https://github.com/thescreechingbagel/spacechan/blob/main/bootstrap/app.php"
click node_web_routes "https://github.com/thescreechingbagel/spacechan/blob/main/routes/web.php"
click node_auth_routes "https://github.com/thescreechingbagel/spacechan/blob/main/routes/auth.php"
click node_register "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_login "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_login_request "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Requests/Auth/LoginRequest.php"
click node_verification "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php"
click node_verification_notice "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/EmailVerificationPromptController.php"
click node_verification_send "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php"
click node_user "https://github.com/thescreechingbagel/spacechan/blob/main/app/Models/User.php"
click node_dashboard "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Userzone/DashboardController.php"
click node_profile "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Userzone/ProfileController.php"
click node_profile_validation "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Requests/ProfileUpdateRequest.php"
click node_welcome "https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/WelcomeController.php"
click node_login_view "https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/auth/login.blade.php"
click node_verification_view "https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/auth/verify-email.blade.php"
click node_dashboard_view "https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/userzone/dashboard.blade.php"
click node_profile_view "https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/userzone/profile/edit.blade.php"
click node_welcome_view "https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/welcome.blade.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_front,node_web_routes,node_auth_routes toneBlue
class node_register,node_login,node_login_request,node_verification,node_verification_notice,node_verification_send,node_user toneAmber
class node_dashboard,node_profile,node_profile_validation,node_welcome toneMint
class node_login_view,node_verification_view,node_dashboard_view,node_profile_view,node_welcome_view toneRose
class node_bootstrap,node_visitor toneIndigo
```

## Components

### HTTP routing

- [HTTP entry](https://github.com/thescreechingbagel/spacechan/blob/main/public/index.php): `public/index.php`
- [Web routes](https://github.com/thescreechingbagel/spacechan/blob/main/routes/web.php): `routes/web.php`
- [Auth routes](https://github.com/thescreechingbagel/spacechan/blob/main/routes/auth.php): `routes/auth.php`

### Authentication

- [Registration](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Login and logout](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Login validation](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Email verification](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/VerifyEmailController.php): `app/Http/Controllers/Auth/VerifyEmailController.php`
- [Verification notices](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/EmailVerificationPromptController.php): `app/Http/Controllers/Auth/EmailVerificationPromptController.php`
- [Resend verification](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Auth/EmailVerificationNotificationController.php): `app/Http/Controllers/Auth/EmailVerificationNotificationController.php`
- [User account](https://github.com/thescreechingbagel/spacechan/blob/main/app/Models/User.php): `app/Models/User.php`

### User area

- [Dashboard handler](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Userzone/DashboardController.php): `app/Http/Controllers/Userzone/DashboardController.php`
- [Profile management](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/Userzone/ProfileController.php): `app/Http/Controllers/Userzone/ProfileController.php`
- [Profile validation](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Requests/ProfileUpdateRequest.php): `app/Http/Requests/ProfileUpdateRequest.php`
- [Welcome page handler](https://github.com/thescreechingbagel/spacechan/blob/main/app/Http/Controllers/WelcomeController.php): `app/Http/Controllers/WelcomeController.php`

### Blade interface

- [Login and register views](https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [Verification view](https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/auth/verify-email.blade.php): `resources/views/auth/verify-email.blade.php`
- [Dashboard view](https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/userzone/dashboard.blade.php): `resources/views/userzone/dashboard.blade.php`
- [Profile views](https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/userzone/profile/edit.blade.php): `resources/views/userzone/profile/edit.blade.php`
- [Welcome view](https://github.com/thescreechingbagel/spacechan/blob/main/resources/views/welcome.blade.php): `resources/views/welcome.blade.php`

### Application runtime

- [App bootstrap](https://github.com/thescreechingbagel/spacechan/blob/main/bootstrap/app.php): `bootstrap/app.php`

### Other components

- **Visitor**

## Connections

- Visitor → HTTP entry: sends requests
- HTTP entry → App bootstrap: starts app (evidence: `public/index.php`)
- App bootstrap → Web routes: loads routes (evidence: `bootstrap/app.php`)
- Web routes → Auth routes: includes routes (evidence: `routes/web.php`)
- Web routes → Dashboard handler: dispatches (evidence: `routes/web.php`)
- Web routes → Profile management: dispatches (evidence: `routes/web.php`)
- Web routes → Welcome page handler: dispatches (evidence: `routes/web.php`)
- Auth routes → Registration: dispatches (evidence: `routes/auth.php`)
- Auth routes → Login and logout: dispatches (evidence: `routes/auth.php`)
- Auth routes → Email verification: dispatches (evidence: `routes/auth.php`)
- Auth routes → Verification notices: dispatches (evidence: `routes/auth.php`)
- Auth routes → Resend verification: dispatches (evidence: `routes/auth.php`)
- Login and logout → Login validation: authenticates with (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Registration → User account: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Email verification → User account: marks verified (evidence: `app/Http/Controllers/Auth/VerifyEmailController.php`)
- Registration → Login and register views: renders (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Login and logout → Login and register views: renders (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Dashboard handler → Dashboard view: renders (evidence: `app/Http/Controllers/Userzone/DashboardController.php`)
- Profile management → Profile validation: validates with (evidence: `app/Http/Controllers/Userzone/ProfileController.php`)
- Profile management → Profile views: renders (evidence: `app/Http/Controllers/Userzone/ProfileController.php`)
- Profile management → User account: updates account (evidence: `app/Http/Controllers/Userzone/ProfileController.php`)
- Welcome page handler → Welcome view: renders
- Verification notices → Verification view: renders
- Resend verification → User account: notifies account
