How samnickgammer/institute-of-abc works
Main Components
A. Client Layer
• Web Interface (Public Frontend)
• Admin Dashboard Interface
• API Consumers
B. Application Layer
• Web Controllers
• Public Controllers (Home, About, Course, Gallery, StudentInfo)
• Admin Controllers (Dashboard, Login)
• API Controllers
• Admin Branch Controller
• Admin Login Controller
C. Middleware Layer
• Admin Authentication Middleware
D. Service Layer
• Utils (EncryptionAndCompare, GenerateRandomStuff)
E. Data Layer
• Models (User and other implied models from migrations)
• Database Tables
• Users
• Branch
• Course
• Student
• Certificate Charge
F. Storage Layer
• Public Assets
• Student Photos
• Private Storage
[Client Layer]
• ↓
[Web/API Gateway]
• ↓
[Middleware Layer]
• ↓
[Application Layer]
• ↓
[Service Layer]
• ↓
[Data Layer]
• ↓
[Storage Layer]
Specific Implementation Details
a. Clear separation between:
• Public web routes (/home, /about, /course, etc.)
• Admin routes (/admin/*)
• API routes (/api/*)
b. MVC pattern:
• Controllers in app/Http/Controllers
• Views in resources/views
• Models in app/Models
• Client requests → Controllers
• Controllers → Models
• Models → Database
• Controllers → Views
• Views → Client responses
Important Architectural Elements
• Laravel's routing system (routes/web.php and routes/api.php)
• Authentication system for admin access
• Asset management (public/assets)
• File storage system (storage/app)
• Database migrations and structure
• Blade templating system (resources/views)