How pablochacon1997/cashtrackr_laravel works
CashTrackr is a Laravel budgeting and expense-tracking application with an Inertia/React interface. Users register and verify an account, create budgets, then record and review expenses. Optional subscribed features add AI budget chat and receipt scanning; separate routes handle plan checkout and subscription management. The graph reflects documented routes and sampled controller/model relationships. Some UI, payment-checkout, and AI-agent internals were not sampled, so their implementation links are omitted or marked unverified.
Main entry points: web.php Web routes · BudgetController.php Budget actions · BudgetChatController.php Budget chat · Budget.php Budgets
Components 23
Accounts
- Authentication
app/Http/Controllers/Auth/RegisterController.php - Profile settings
app/Http/Controllers/UpdateProfileController.php - User account
app/Models/User.php
Budgeting
- Budget actions
app/Http/Controllers/BudgetController.php - Expense actions
app/Http/Controllers/ExpenseController.php - Budgets
app/Models/Budget.php - Expenses
app/Models/Expense.php - Expense categories
app/ExpenseCategory.php - Budget view
resources/js/Pages/Budgets/Show.tsx
AI assistance
- Budget chat
app/Http/Controllers/BudgetChatController.php - Budget assistant
app/Ai/Agents/BudgetAsistant.php - Chat interface
resources/js/Components/CashTrackrAgent.tsx - Receipt scanning
app/Http/Controllers/TicketScanController.php - Ticket scanner
app/Ai/Agents/TicketScanner.php
Subscriptions
- Plan checkout
app/Http/Controllers/SubscriptionCheckoutController.php - Subscription management
app/Http/Controllers/SubscriptionController.php - Plans interface
resources/js/Pages/Pro/Plans.tsx - Subscription interface
resources/js/Pages/Subscriptions/Manage.tsx
Other components
- User
- Web routes
routes/web.php - Application database
- AI provider
- Stripe
Connections 31
- User → Web routes: sends requests
routes/web.php - Web routes → Authentication: routes auth
routes/web.php - Web routes → Profile settings: routes settings
routes/web.php - Web routes → Budget actions: routes budgets
routes/web.php - Web routes → Expense actions: routes expenses
routes/web.php - Web routes → Budget chat: routes chat
routes/web.php - Web routes → Receipt scanning: routes scans
routes/web.php - Web routes → Plan checkout: routes checkout
routes/web.php - Web routes → Subscription management: routes subscriptions
routes/web.php - Authentication → User account: creates account
app/Http/Controllers/Auth/RegisterController.php - Profile settings → User account: updates account
app/Http/Controllers/UpdateProfileController.php - Budget actions → Budgets: creates and manages
app/Http/Controllers/BudgetController.php - Budget actions → Expenses: loads expenses
app/Http/Controllers/BudgetController.php - Budget actions → Expense categories: builds category data
app/Http/Controllers/BudgetController.php - Budget actions → Budget view: renders
app/Http/Controllers/BudgetController.php - Expense actions → Budgets: uses budget
app/Http/Controllers/ExpenseController.php - Expense actions → Expenses: creates and manages
app/Http/Controllers/ExpenseController.php - Budgets → Application database: persists budgets
- Expenses → Application database: persists expenses
- User account → Application database: persists account
- Web routes → Chat interface: serves chat feature
- Budget chat → Budget assistant: prompts
app/Http/Controllers/BudgetChatController.php - Budget chat → Budgets: uses budget
app/Http/Controllers/BudgetChatController.php - Budget chat → AI provider: requests AI response
- Receipt scanning → Ticket scanner: prompts with image
app/Http/Controllers/TicketScanController.php - Receipt scanning → Expenses: creates expenses
app/Http/Controllers/TicketScanController.php - Ticket scanner → AI provider: uses provider
- Plan checkout → Stripe: starts checkout
- Subscription management → Stripe: manages billing
- Subscription management → Subscription interface: renders management
app/Http/Controllers/SubscriptionController.php - Web routes → Plans interface: renders plans
routes/web.php