How galih1250/music-player works
This Laravel/Inertia application provides a song library with song listing, artist filtering, and song create, update, and delete operations, alongside Jetstream/Fortify account features. A browser request enters Laravel’s HTTP kernel, is routed to application handlers, and returns JSON or an Inertia page rendered by Vue. Song records and uploaded media are handled separately. The tree also shows profile, API-token, and two-factor screens; their detailed server-side wiring is not established by the sampled excerpts, so those links are omitted.
Main entry points: SongController.php Song operations · index.php Laravel entry · User.php User accounts · FortifyServiceProvider.php Fortify workflows
Components 21
HTTP and routing
- Laravel entry
public/index.php - App bootstrap
bootstrap/app.php - HTTP middleware
app/Http/Kernel.php - Route registration
app/Providers/RouteServiceProvider.php - Web routes
routes/web.php
Song library
- Song operations
app/Http/Controllers/SongController.php - Song records
app/Models/Song.php - Uploaded media
app/Http/Controllers/SongController.php
Accounts and security
- Fortify workflows
app/Providers/FortifyServiceProvider.php - User registration
app/Actions/Fortify/CreateNewUser.php - Profile updates
app/Actions/Fortify/UpdateUserProfileInformation.php - Account deletion
app/Actions/Jetstream/DeleteUser.php - Jetstream setup
app/Providers/JetstreamServiceProvider.php - User accounts
app/Models/User.php
Vue interface
- Song dashboard
resources/js/Pages/Dashboard.vue - Inertia Vue startup
resources/js/app.js - Auth pages
resources/js/Pages/Auth/Register.vue - Profile features
resources/js/Pages/Profile/Show.vue - API token manager
resources/js/Pages/API/Partials/ApiTokenManager.vue - Two-factor settings
resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue
Other components
- Browser user
Connections 15
- Browser user → Laravel entry: sends request
- Laravel entry → App bootstrap: loads app
public/index.php - Laravel entry → HTTP middleware: dispatches request
public/index.php - Route registration → Web routes: registers routes
app/Providers/RouteServiceProvider.php - Web routes → Song operations: routes requests
routes/web.php - Song operations → Song records: queries and saves
app/Http/Controllers/SongController.php - Song operations → Uploaded media: stores and deletes
app/Http/Controllers/SongController.php - Song operations → Song dashboard: renders page
app/Http/Controllers/SongController.php - Inertia Vue startup → Song dashboard: resolves page
resources/js/app.js - Fortify workflows → User registration: registers action
app/Providers/FortifyServiceProvider.php - Fortify workflows → Profile updates: registers action
app/Providers/FortifyServiceProvider.php - User registration → User accounts: creates user
app/Actions/Fortify/CreateNewUser.php - Profile updates → User accounts: updates user
app/Actions/Fortify/UpdateUserProfileInformation.php - Jetstream setup → Account deletion: registers action
app/Providers/JetstreamServiceProvider.php - Account deletion → User accounts: deletes user
app/Actions/Jetstream/DeleteUser.php