A full-stack web app for freelancers to track billable hours, manage clients, and generate professional PDF invoices — built with Laravel 12, Tailwind CSS, and Alpine.js.
| Field | Value |
|---|---|
demo@example.com |
|
| Password | password |
- Clients — CRUD, default hourly rate, currency
- Projects — link to clients, per-project hourly rate, status (active / paused / completed)
- Time Entries — manual log or live timer start/stop from the dashboard
- Invoices — auto-generated invoice numbers, line items from billed time entries, tax rate, PDF export
- Dashboard — hours this week/month, unbilled amount by project, live elapsed clock for running timers
- Filters — filter time entries by project and/or date range
- PDF export — clean A4 invoice PDF via dompdf (
/invoices/{id}/pdf) - Auth — login / register via Laravel Breeze (Blade stack)
| Layer | Choice |
|---|---|
| Framework | Laravel 12.x |
| PHP | 8.4 |
| Auth | Laravel Breeze (Blade) |
| Database | SQLite (local dev) |
| Frontend | Tailwind CSS + Alpine.js via Vite |
| barryvdh/laravel-dompdf |
# 1. Clone
git clone https://github.com/Esmond-M/invoice-app.git
cd invoice-app
# 2. Install dependencies
composer install
npm install
# 3. Environment
cp .env.example .env
php artisan key:generate
# 4. Database + demo seed
php artisan migrate --seed
# 5. Build assets
npm run build
# 6. Serve
php artisan serveOpen http://localhost:8000 and log in with the demo account:
| Field | Value |
|---|---|
demo@example.com |
|
| Password | password |
The seeder creates:
- 2 clients (Acme Corp, Nova Digital)
- 3 projects (Website Redesign, REST API Integration, Internal Tools)
- 13 time entries across 3 weeks
- 1 sent invoice (INV-0001)
app/
Http/Controllers/ # Dashboard, Client, Project, TimeEntry, Timer, Invoice
Models/ # Client, Project, TimeEntry, Invoice, InvoiceLineItem
Policies/ # Ownership-based auth (ClientPolicy, ProjectPolicy, ...)
resources/views/
layouts/app.blade.php # Sidebar layout with Alpine.js mobile toggle
dashboard.blade.php
clients/
projects/
time-entries/
invoices/ # includes pdf.blade.php for dompdf
database/
migrations/
seeders/DatabaseSeeder.php
MIT
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out Laravel Learn, where you will be guided through building a modern Laravel application.
If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.