How moshohel/freelance-time-tracker works
Project type and purpose
• This is a backend‐only RESTful API built with Laravel 12 (“Freelance Time Tracker API”).
• It provides user authentication (Laravel Sanctum), client/project CRUD, time logging, and reporting endpoints.
File structure
• Top‐level:
• app/Http/Controllers/Api → all HTTP entrypoints (AuthController, ClientController, ProjectController, TimeLogController)
• app/Services & app/Repositories → a Service layer sitting above a Repository layer
• app/Models → Eloquent models (User, Client, Project, TimeLog)
• database/migrations, factories, seeders → DB schema and test data
• routes/api.php → API route definitions, protected by auth middleware
• Config & bootstrap files for framework setup, .env for runtime config, public/index.php as front controller.
README
• Clearly describes features: authentication, client/project management, time logs, reporting.
• Lists tech stack: PHP 8.2, MySQL, Laravel 12, Sanctum, PHPUnit.
• Outlines API endpoints and usage.