How prodigyphp/prodigy works
Main System Components
a) Core Components:
• Page Builder Engine (src/Prodigy.php as the main entry point)
• Block Management System
• Authentication System
• Content Management System
• Asset Management
b) Frontend Components:
• Editor Interface (Livewire components)
• Block Rendering System
• Asset Pipeline (CSS/JS/Images)
Architectural Patterns to Highlight
a) MVC Pattern:
• Models (src/Models/)
• Views (resources/views/)
• Controllers (src/Http/Controllers/)
b) Component-Based Architecture:
• Block Components
• Field Components
• Editor Components
Specific Implementation Details
┌─ Client Layer ─────────────────────┐
• Browser Interface │
• Livewire Components │
• Alpine.js │
• ┬───────────────────┘
• ↕ HTTP/WebSocket
┌─ Application Layer ────────────────┐
• ┌─ Page Builder Core ────────────┐ │
• Block Management │ │
• Page Management │ │
• Content Management │ │
• ┘ │
• ┌─ Services ───────────────────┐ │
• Authentication │ │
• Asset Management │ │
• Backup System │ │
• ┘ │
• ┬───────────────────┘
• ↕
┌─ Storage Layer ──────────────────┐
• Database │
• File Storage (Media/Assets) │
• ┘
Key Interactions
• User interactions with the editor
• Block rendering flow
• Content saving/loading
• Media upload/management
• Authentication flow
Important Technical Elements
• Laravel Framework
• Livewire
• Alpine.js
• CKEditor
• CodeMirror
• Database (MySQL/PostgreSQL)
Integration Points
Connections with:
• Laravel's core systems
• External asset delivery
• Database interactions
• File system operations
Remember to:
• Use consistent styling
• Notes for complex interactions
• Both synchronous and asynchronous flows