How mdhedayet/laravel-vue-spa-skeleton works
Main Components
A. Frontend Layer:
• Vue.js SPA Application
• Core Components (resources/js/core)
• Modular Structure (resources/js/modules)
• State Management (Vuex stores)
• Routing System (Vue Router)
• UI Components (ElementUI)
• i18n Internationalization
B. Backend Layer:
• Laravel API Application
• Modular Structure (app/Modules)
• Authentication System (JWT + Sanctum)
• Database Layer
• Command System (for module generation)
┌─────────────────────────────────────────────────────────┐
• Client Browser │
• ┘
• ↕
┌─────────────────────────────────────────────────────────┐
• Frontend (Vue.js SPA) │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
• Core │ │ Modules │ │ Shared │ │
• Components │ │ (Auth, │ │ (Store, │ │
• (App.vue) │ │ Settings, │ │ Router) │ │
• ┘ │ Dashboard) │ └─────────────┘ │
• ┘ │
• ┘
• ↕
┌─────────────────────────────────────────────────────────┐
• Backend (Laravel API) │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
• API Routes │ │ Modules │ │ Services │ │
• & Middle- │ │ Controllers │ │ & Repos │ │
• ware │ │ & Resources │ │ │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┘
• ↕
┌─────────────────────────────────────────────────────────┐
• Database │
• ┘
Special Attention Points
A. Module System:
• How modules are dynamically loaded
• Module generation system
• Symmetry between frontend and backend modules
B. Authentication Flow:
• JWT token handling
• Sanctum integration
• Authentication middleware
C. State Management:
• Vuex store structure
• Module-specific stores
• Global state management
Additional Elements
• Notes about the module generation command
• I18n system integration
• ElementUI component usage
• API routing structure
Implementation Details
• The modular architecture allowing independent module development
• The CRUD generation capability
• The separation between frontend and backend concerns
• The scalability of the architecture
• The security implementation