Skip to content
$ cd ../projects

// case study ยท Jiasaz ยท 2026 โ€“ Present

Injaz ERP

Injaz is a full-scale ERP covering finance, sales, inventory, HR, manufacturing, POS and more. I own backend features end to end: API design, business rules, database structure and tests.

LaravelPHPMySQLVue.jsPestPHPUnit

๐Ÿ”’ Private codebase. Details are general, and code samples are simplified to show the patterns without proprietary logic.

Business overview: live KPIs and the module launcher (Finance, Sales, Inventory, HR, POS and more).
injaz-dashboard.webp
Injaz ERP business overview dashboard with KPI cards and module launcher

Business overview: live KPIs and the module launcher (Finance, Sales, Inventory, HR, POS and more).

my role
Full Stack Developer, mainly backend
the problem
As the ERP grew, controllers had taken on validation, business rules and persistence all at once. That made features slow to add, hard to test and easy to break.

Architecture

  1. Request
  2. FormRequest
  3. Controller
  4. Service
  5. Repository
  6. Model / DB

What I did

  • Designed REST endpoints for core ERP modules with consistent resources, validation and error responses.
  • Moved business logic out of controllers into a Service layer, so controllers only handle HTTP.
  • Modelled database structures and relations to protect data integrity in multi-step operations.
  • Built the matching Vue.js screens when a feature needed them.

Testing strategy

Unit tests cover services in isolation. Feature tests go through the HTTP layer. Dedicated integrity and consistency tests check that totals, stock and related records stay correct after every operation.

The pattern, in code

app/Http/Controllers/InvoiceController.php
public function store(
    StoreInvoiceRequest $request,
    InvoiceService $invoices,
): InvoiceResource {
    $invoice = $invoices->create(
        InvoiceData::from($request->validated())
    );

    return new InvoiceResource($invoice);
}

Outcomes

  • Thinner controllers, with business rules in one testable place.
  • Fewer regressions, because PHPUnit and Pest cover the critical flows.
  • Better performance and security across existing modules.