How karabinse/fabriq works
Fabriq is a Laravel CMS with a Vue administration SPA and API for managing structured, localized website content. The principal workflow is an editor creating or updating pages and blocks, resolving referenced content for preview or delivery, and publishing changes; related branches cover media, navigation, collaboration, and analytics. The excerpts and source index support several backend relationships, but frontend API wiring and some unsampled subsystems are not verified, so those links are omitted or marked unverified.
Main entry points: Page.php Page model · PageController.php Page API · EloquentPageRepository.php Page repository · RouteRegistrar.php API routing
Components 20
Administration
- Admin SPA
resources/fabriq/js/App.vue - API routing
src/RouteRegistrar.php - Page API
src/Http/Controllers/Api/Fabriq/PageController.php - Resource APIs
src/Http/Controllers/Api/Fabriq
Content delivery
- Page model
src/Models/Page.php - Page repository
src/Repositories/EloquentPageRepository.php - Content resolver
src/ContentGetters/ContentResourceContext.php - Live page data
src/Data/LivePageData.php - Blocks and templates
src/Models/Block.php - Page previews
src/Http/Controllers/Api/Fabriq/PagePreviewController.php - Slug preview
src/Http/Controllers/Api/Fabriq/PageSlugPreviewController.php
CMS resources
- Media library
src/Http/Controllers/Api/Fabriq/ImageController.php - Menus and paths
src/Repositories/EloquentMenuRepository.php - Comments and presence
src/Http/Controllers/Api/Fabriq/CommentController.php
Platform services
- Site analytics
src/Services/SearchConsoleService.php - Analytics queries
src/Search/TopPagesQuery.php - Cache invalidation
src/Services/BlockReferenceInvalidator.php - Cache webhooks
src/Listeners/CallCacheBustingWebhook.php
Other components
- CMS editor
- Google Search Console
Connections 14
- CMS editor → Admin SPA: edits content
- API routing → Page API: routes pages
src/RouteRegistrar.php - API routing → Resource APIs: routes resources
src/RouteRegistrar.php - Page API → Content resolver: resolves content
src/Http/Controllers/Api/Fabriq/PageController.php - Page API → Page model: loads pages
src/Http/Controllers/Api/Fabriq/PageController.php - Page repository → Page model: queries pages
src/Repositories/EloquentPageRepository.php - Page repository → Blocks and templates: loads blocks
src/Repositories/EloquentPageRepository.php - Slug preview → Page repository: finds preview page
src/Http/Controllers/Api/Fabriq/PageSlugPreviewController.php - Slug preview → Content resolver: resolves content
src/Http/Controllers/Api/Fabriq/PageSlugPreviewController.php - Page previews → Page model: loads page
src/Http/Controllers/Api/Fabriq/PagePreviewController.php - Page model → Cache invalidation: invalidates references
src/Models/Page.php - Cache webhooks → Cache invalidation: batches changes
src/Listeners/CallCacheBustingWebhook.php - Site analytics → Analytics queries: builds queries
src/Services/SearchConsoleService.php - Site analytics → Google Search Console: requests analytics
src/Services/SearchConsoleService.php