A simple personal budget tracker built with Laravel.
- Add, edit, and delete transactions
- Mark each transaction as
incomeorexpense - Monthly filter (
YYYY-MM) - Dashboard summary cards:
- Total income
- Total expense
- Net balance
- Input validation for amount, date, type, and category
- Laravel 12
- Blade templates
- MySQL (XAMPP)
- Install dependencies
composer install
npm install- Configure environment
cp .env.example .env
php artisan key:generate-
Update DB connection in
.env(already done in your case) -
Run migrations
php artisan migrate- Start the server
php artisan serveThen open:
GET /-> redirects to transactions dashboardGET /transactions-> list transactions + summaryGET /transactions/create-> create formPOST /transactions-> save transactionGET /transactions/{transaction}/edit-> edit formPUT /transactions/{transaction}-> update transactionDELETE /transactions/{transaction}-> delete transaction
php artisan testtransactions table fields:
idtype(incomeorexpense)category(string)amount(decimal)description(nullable text)transaction_date(date)created_at,updated_at