How lisyarakirovskiy/example-app works
This Laravel application appears to support user and video management, authentication, and per-video like/dislike statistics. The main workflow is a user-facing request handled by a controller, validated where applicable, then delegated to a repository or Eloquent model for changes; controllers return views or API resources. The graph includes user administration, video/statistics features, and authentication. Route files are present but unsampled, so request-to-controller dispatch is not asserted; some capabilities are represented only where the source index or excerpts support them.
Main entry points: UserController.php User controller · User.php User model · Video.php Video model · VideoController.php Video controller
Components 22
Users and identity
- User controller
app/Http/Controllers/UserController.php - User API
app/Http/Controllers/Api/UserController.php - User repository
app/Repository/User/UserRepository.php - User validation
app/Http/Requests/UserStoreRequest.php - User update validation
app/Http/Requests/UserUpdateRequest.php - User API resources
app/Http/Resources/UserResource.php - User detail resource
app/Http/Resources/UserDetailResource.php
Video and statistics
- Video controller
app/Http/Controllers/VideoController.php - Video repository
app/Repository/Video/VideoRepository.php - Video validation
app/Http/Requests/VideoStoreRequest.php - Video update validation
app/Http/Requests/VideoUpdateRequest.php - Statistics controller
app/Http/Controllers/StatisticController.php - Statistics repository
app/Repository/Statistic/StatisticRepository.php - Statistics validation
app/Http/Requests/StatisticStoreRequest.php
Authentication and access
- Login
app/Http/Controllers/Auth/LoginController.php - Registration
app/Http/Controllers/Auth/RegisterController.php - Verification
app/Http/Controllers/Auth/VerificationController.php - Access policies
app/Providers/AuthServiceProvider.php
Domain data
- User model
app/Models/User.php - Video model
app/Models/Video.php - Statistic model
app/Models/Statistic.php
Other components
- Application user
Connections 33
- Application user → User controller: requests
- Application user → User API: requests
- Application user → Video controller: requests
- Application user → Statistics controller: requests
- Application user → Login: requests
- Application user → Registration: requests
- Application user → Verification: requests
- User controller → User repository: delegates to
app/Http/Controllers/UserController.php - User controller → User model: queries
app/Http/Controllers/UserController.php - User controller → User validation: validates with
app/Http/Controllers/UserController.php - User controller → User update validation: validates with
app/Http/Controllers/UserController.php - User controller → Access policies: authorizes with
- User API → User model: queries
app/Http/Controllers/Api/UserController.php - User API → User API resources: formats collection
app/Http/Controllers/Api/UserController.php - User API → User detail resource: formats detail
app/Http/Controllers/Api/UserController.php - User repository → User model: creates and updates
app/Repository/User/UserRepository.php - User controller → User update validation: passes to repository
app/Http/Controllers/UserController.php - User repository → User validation: validates input
app/Repository/User/UserRepository.php - Video controller → Video repository: delegates to
app/Http/Controllers/VideoController.php - Video controller → Video model: uses model
app/Http/Controllers/VideoController.php - Video controller → Video validation: validates with
app/Http/Controllers/VideoController.php - Video controller → Video update validation: validates with
app/Http/Controllers/VideoController.php - Video repository → Video model: creates and updates
app/Repository/Video/VideoRepository.php - Statistics controller → Statistics repository: delegates to
app/Http/Controllers/StatisticController.php - Statistics controller → Statistics validation: validates with
app/Http/Controllers/StatisticController.php - Statistics repository → Statistic model: reads and writes
app/Repository/Statistic/StatisticRepository.php - Statistics repository → Video model: uses video
app/Repository/Statistic/StatisticRepository.php - Registration → User model: creates account
app/Http/Controllers/Auth/RegisterController.php - Access policies → User model: checks roles
app/Providers/AuthServiceProvider.php - Access policies → Video model: checks ownership
app/Providers/AuthServiceProvider.php - User model → Video model: relates videos
app/Models/User.php - User model → Statistic model: relates statistics
app/Models/User.php - Video model → Statistic model: relates statistics
app/Models/Video.php