How chizuyu/moco works
Moco is a Laravel news portal with a public reading experience and a Filament CMS. Readers browse the landing page, search or filter news, open stories, and view author profiles; administrators and authors manage content, with author registration creating a user and author profile. Public controller behavior is sampled; CMS capabilities and registration details are documented in the README, but their implementation wiring was not sampled.
Main entry points: Resources Filament Admin CMS · LandingController.php Landing Controller · Author.php Author · web.php Web Routes
Components 18
Public News Portal
- Web Routes
routes/web.php - Landing Controller
app/Http/Controllers/LandingController.php - News Controller
app/Http/Controllers/NewsController.php - Author Controller
app/Http/Controllers/AuthorController.php - Landing Page
resources/views/landing/index.blade.php - News Pages
resources/views/news/index.blade.php - Author Profile
resources/views/author/show.blade.php - Site Layout
resources/views/layouts/app.blade.php
News Content
- News
app/Models/News.php - News Category
app/Models/NewsCategory.php - Banner
app/Models/Banner.php - Application Database
Admin CMS
- Filament Admin CMS
app/Filament/Resources - Author Registration
app/Filament/Pages/Auth/AuthorRegister.php
Other components
- Reader
- Admin / Author
Connections 30
- Reader → Web Routes: requests pages
- Web Routes → Landing Controller: dispatches landing
- Web Routes → News Controller: dispatches news
- Web Routes → Author Controller: dispatches profile
- Landing Controller → Banner: queries banners
- Landing Controller → News: queries selections
- Landing Controller → Author: counts authors
- Landing Controller → Landing Page: renders landing
- News Controller → News: searches news
- News Controller → News Category: filters category
- News Controller → News Pages: renders news
- Author Controller → Author: loads profile
- Author Controller → Author Profile: renders profile
- Landing Page → Site Layout: uses layout
- News Pages → Site Layout: uses layout
- Author Profile → Site Layout: uses layout
- News → Application Database: reads records
- News Category → Application Database: reads records
- Banner → Application Database: reads records
- Author → Application Database: reads records
- Admin / Author → Filament Admin CMS: manages content
- Filament Admin CMS → News: manages news
- Filament Admin CMS → News Category: manages categories
- Filament Admin CMS → Banner: manages banners
- Filament Admin CMS → Author: manages authors
- Filament Admin CMS → User: manages users
- Admin / Author → Author Registration: registers author
- Author Registration → User: creates account
- Author Registration → Author: creates profile
- User → Application Database: reads / writes