How ibrahim-2li/budget works
Budget App is a Laravel/Inertia personal-finance application. Users register or sign in, then manage monthly income and expenses and track savings goals; administrators have separate dashboard, user, and category management screens. Laravel routes dispatch requests to controllers, which validate and process domain data before returning Inertia pages. The graph includes the sampled controller/model relationships and documented application areas; source excerpts do not expose every route or frontend interaction, so uncertain links are omitted.
Main entry points: web.php Web routes · DashboardController.php Dashboard actions · BudgetController.php Budget actions · AuthController.php Authentication actions
Components 24
Web entry
- Web routes
routes/web.php - Inertia middleware
app/Http/Middleware/HandleInertiaRequests.php
Personal finance
- Budget actions
app/Http/Controllers/BudgetController.php - Budget screen
resources/js/pages/Budget.vue - Goal actions
app/Http/Controllers/GoalController.php - Goals screen
resources/js/pages/Goals/Index.vue - Income records
app/Models/Income.php - Expense records
app/Models/Expense.php - Categories
app/Models/Category.php - Savings goals
app/Models/Goal.php
Administration
- Dashboard actions
app/Http/Controllers/Admin/DashboardController.php - Admin dashboard
resources/js/pages/Admin/Dashboard.vue - User administration
app/Http/Controllers/Admin/UserController.php - Users screen
resources/js/pages/Admin/Users.vue - Category administration
app/Http/Controllers/Admin/CategoryController.php - Categories screen
resources/js/pages/Admin/Categories.vue
Identity and localization
- Authentication actions
app/Http/Controllers/AuthController.php - Login screen
resources/js/pages/Auth/Login.vue - Registration screen
resources/js/pages/Auth/Register.vue - User identity
app/Models/User.php - User roles
app/Models/Role.php - Locale actions
app/Http/Controllers/LocaleController.php - Locale middleware
app/Http/Middleware/SetLocale.php
Other components
- Visitor / user
Connections 30
- Visitor / user → Web routes: sends requests
routes/web.php - Web routes → Budget actions: dispatches
routes/web.php - Web routes → Goal actions: dispatches
routes/web.php - Web routes → Authentication actions: dispatches
routes/web.php - Web routes → Dashboard actions: dispatches
routes/web.php - Web routes → User administration: dispatches
routes/web.php - Web routes → Category administration: dispatches
routes/web.php - Web routes → Locale actions: dispatches
routes/web.php - Budget actions → Budget screen: renders
app/Http/Controllers/BudgetController.php - Budget actions → Income records: reads / writes
app/Http/Controllers/BudgetController.php - Budget actions → Expense records: reads / writes
app/Http/Controllers/BudgetController.php - Budget actions → Categories: reads
app/Http/Controllers/BudgetController.php - Goal actions → Goals screen: renders
app/Http/Controllers/GoalController.php - Goal actions → Savings goals: reads / writes
app/Http/Controllers/GoalController.php - Dashboard actions → Admin dashboard: renders
app/Http/Controllers/Admin/DashboardController.php - Dashboard actions → User identity: queries
app/Http/Controllers/Admin/DashboardController.php - Dashboard actions → Categories: queries
app/Http/Controllers/Admin/DashboardController.php - Dashboard actions → Income records: aggregates
app/Http/Controllers/Admin/DashboardController.php - Dashboard actions → Expense records: aggregates
app/Http/Controllers/Admin/DashboardController.php - User administration → Users screen: renders
app/Http/Controllers/Admin/UserController.php - User administration → User identity: queries / updates
app/Http/Controllers/Admin/UserController.php - User administration → User roles: reads
app/Http/Controllers/Admin/UserController.php - Category administration → Categories: manages
app/Http/Controllers/Admin/CategoryController.php - Authentication actions → Login screen: renders
app/Http/Controllers/AuthController.php - Authentication actions → Registration screen: renders
app/Http/Controllers/AuthController.php - Authentication actions → User identity: authenticates / creates
app/Http/Controllers/AuthController.php - Authentication actions → User roles: assigns role
app/Http/Controllers/AuthController.php - Locale actions → Locale middleware: updates locale
app/Http/Controllers/LocaleController.php - Web routes → Inertia middleware: web middleware
- Web routes → Locale middleware: web middleware