Skip to content

A Laravel ERP starter kit that gets stock right.

Inventory, purchasing and sales sit on one stock ledger, so every unit in a warehouse traces back to the purchase order that brought it in or the sales order that took it out. Clone it, rename it, and build the rest of your system on top.

laravel new my-erp --using=recodex-id/rakit
How stock changes
DocumentMovementStock
PO-2026-····Purchase receipt+ in
SO-2026-····Sales delivery− out
ManualAdjustment±

The three ways stock can change. There is no fourth.

Stock ledger

The rules the stock, purchasing and sales modules enforce, each with its own tests.

  1. 01Stock is a ledger of signed movements, never a number someone can overwrite.
  2. 02Receiving a purchase order books every line into the warehouse in one transaction.
  3. 03Delivery is all or nothing: if any line is short in the ship-from warehouse, nothing moves and the message names the item.
  4. 04Adjustments after a stock count need a reason and can never push stock below zero.
  5. 05Each item has a stock card with a running balance, so every unit traces back to its document.

Order flow

Status colours mean the same thing on every screen: grey is a draft, amber waits for someone, blue is approved, green is done.

Purchasing PO-2026-0001

  1. Draft
  2. Submitted
  3. Approved
  4. Received

Approval is its own permission, so ordering and approving can be split between people. Receiving books every line into stock at once.

Sales SO-2026-0001

  1. Draft
  2. Confirmed
  3. Delivered

Delivery checks every line against the ship-from warehouse before anything moves. Either order can be cancelled before it touches stock.

Modules

What ships in the box.

Master data
Items (SKU, unit, purchase and sale price, minimum stock, photo), warehouses, customers and suppliers. Anything already used on a document can only be deactivated, never deleted.
Inventory
Stock levels per warehouse, a low-stock filter, a stock card per item and adjustments after a stock count.
Documents
PO and SO numbering from a locked counter, amounts stored as whole Rupiah integers, and a print view per order. The browser's "Save as PDF" covers the PDF case.
Roles & permissions
Permissions are defined in code, roles are edited in the app by a super admin. Admin gets every module, staff is read-only, and you can add roles like "warehouse clerk".
Dashboard
Sales and purchases this month, orders waiting for approval or delivery, low-stock items and a 14-day chart of delivered sales. Each card only shows if the user has access to that module.
Back office
User management, company details for printed documents, a media library and an activity log of who changed what.
Private by default
The app sits behind the login, every page is noindex and robots.txt disallows everything. Security headers and HTTPS enforcement are on in production.

Left out on purpose

Each project decides these for itself. The in-app documentation shows how to add a module in the same shape.

  • Accounting
  • Invoices and payments
  • Tax (PPN)
  • Multiple currencies
  • Partial receipts and deliveries
  • Transfers between warehouses

Stack

Rakit is the sister project of Rewire: same stack and conventions, aimed at internal systems instead of landing pages.

PHP8.4
Laravel13
AuthFortify: login, password reset, email verification, no self sign-up
FrontendLivewire 4 + Flux UI
StylingTailwind CSS v4
RolesSpatie Permission
AuditSpatie Activitylog
MediaSpatie Media Library
QualityPest 4, Pint, Larastan

Get started

Uses SQLite by default, so there is no database server to set up first.

Clone and run

git clone https://github.com/Recodex-ID/rakit.git
cd rakit
composer install
npm install
cp .env.example .env
touch database/database.sqlite
php artisan key:generate
php artisan storage:link
php artisan migrate --seed
composer run dev

composer run dev runs the app server, queue listener and Vite together. The app is then at http://localhost:8000.

Demo accounts

The seeder creates a small demo company (two warehouses, eight items, suppliers, customers and orders in every status) and these accounts, all with the password password. For a real deployment seed only the accounts with --seeder=UserSeeder and change the passwords.

EmailRoleAccess
super-admin@mail.testsuper-adminEverything, plus roles and the activity log
admin@mail.testadminEvery module, users, settings, media
staff@mail.teststaffRead-only

Make it yours

  1. 1.Set APP_NAME and the rest of .env.
  2. 2.Fill in the company name, address, phone, email and tax ID under System > Settings. They are printed on every order.
  3. 3.Swap the palette in resources/css/app.css (--color-brand-*), the logo in public/images/logo.png and the public/favicon* files.
  4. 4.Adjust roles under Super Admin > Roles & permissions, or add permissions for a new module in App\Enums\Permission.
  5. 5.Update the name and description in composer.json if you rename the repo.

Quality checks

composer test

Runs Pest, Pint and Larastan, the same as CI on every push.