Backend Architecture
Overview
The Smart Academic Hub backend follows a clean, layered architecture pattern.
Architecture Layers
Controller Layer
- Handles HTTP requests and responses
- Validates input using Form Requests
- Returns JSON responses with proper status codes
Service Layer
- Contains business logic
- Coordinates between controllers and models
- Handles complex operations
Model Layer
- Eloquent ORM models
- Database relationships
- Query scopes and accessors