How vasyukov1/marginalia works
This Laravel educational starter pack implements a book catalog and personal reading tracker, with account registration, login, profile management, and localized web pages. The main workflow is a visitor entering through web routes, browsing books or authors, then an authenticated user recording and reviewing reading activity and statistics. The graph includes the domain models as an internal layer. Controller and route excerpts support the shown calls; catalog, dashboard, and some authentication behavior is only represented where the source index or README establishes it.
Main entry points: web.php Web routes · ReadingController.php Reading entries · Book.php Book model · AuthorController.php Author browsing
Components 19
Web and accounts
- Web routes
routes/web.php - Auth routes
routes/auth.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Login sessions
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Profile management
app/Http/Controllers/Userzone/ProfileController.php - Locale middleware
app/Http/Middleware/SetLocale.php
Book catalog
- Catalog browsing
app/Http/Controllers/CatalogController.php - Author browsing
app/Http/Controllers/AuthorController.php - Book details
app/Http/Controllers/BookController.php - Author pages
resources/views/authors/index.blade.php
Reading tracker
- Reading entries
app/Http/Controllers/ReadingController.php - Reading dashboard
app/Http/Controllers/Userzone/DashboardController.php - Reading form
resources/views/readings/create.blade.php
Domain and persistence
- Author model
app/Models/Author.php - Book model
app/Models/Book.php - Reading model
app/Models/Reading.php - User model
app/Models/User.php - SQLite database
config/database.php
Other components
- Visitor
Connections 22
- Visitor → Web routes: requests pages
routes/web.php - Web routes → Catalog browsing: dispatches to
routes/web.php - Web routes → Author browsing: dispatches to
routes/web.php - Web routes → Book details: dispatches to
routes/web.php - Web routes → Reading entries: dispatches to
routes/web.php - Web routes → Reading dashboard: dispatches to
routes/web.php - Web routes → Profile management: dispatches to
routes/web.php - Auth routes → Registration: routes requests
routes/auth.php - Auth routes → Login sessions: routes requests
routes/auth.php - Registration → User model: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Author browsing → Author model: queries authors
app/Http/Controllers/AuthorController.php - Author browsing → Author pages: renders page
app/Http/Controllers/AuthorController.php - Reading entries → Reading model: records reading
app/Http/Controllers/ReadingController.php - Reading entries → Book model: queries books
app/Http/Controllers/ReadingController.php - Reading entries → Author model: finds author
app/Http/Controllers/ReadingController.php - Reading entries → Reading form: renders form
app/Http/Controllers/ReadingController.php - Reading dashboard → Book model: queries books
app/Http/Controllers/Userzone/DashboardController.php - Profile management → User model: updates account
app/Http/Controllers/Userzone/ProfileController.php - User model → Reading model: relates readings
app/Models/User.php - Reading model → Book model: relates book
app/Models/Reading.php - Book model → Author model: relates author
app/Models/Book.php - Book model → SQLite database: persists records