Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Inventory

LicenseStablePHPIssuesMerge Requests

Description

Inventory manages Enso warehouses, storage positions, labels, stock reservations, and availability calculations.

The package exposes CRUD flows for warehouses and positions, position move and product-location endpoints, label indexes and options, and a server-side inventory service that handles insert, move, reserve, fulfill, swap, cancel, and stock-update operations.

It is intended for private Enso deployments that need warehouse and stock-control workflows tied to commercial documents.

Installation

This is a proprietary package distributed through the private Enso registry.

Run the package migrations:

php artisan migrate

Optional publishes:

php artisan vendor:publish --tag=inventory-factories
php artisan vendor:publish --tag=inventory-import-template

Features

  • Warehouse CRUD, table, export, and options endpoints.
  • Position CRUD, table, export, product lookup, and stock-move endpoints.
  • Label index and options endpoints.
  • Import template for warehouse position onboarding.
  • Inventory service methods for insert, undo insert, move, fulfill, undo fulfill, reserve, swap, cancel, and stock refresh operations.

Usage

The package mounts its routes under:

  • inventory.warehouses.*
  • inventory.positions.*
  • inventory.labels.*

Use the service for stock operations:

use LaravelEnso\Inventory\Services\Inventory;

Inventory::reserve($orderLine, 5);
Inventory::move($product, $fromPosition, $toPosition, 2);

API

HTTP routes

Warehouses:

  • GET api/inventory/warehouses/create
  • POST api/inventory/warehouses
  • GET api/inventory/warehouses/{warehouse}/edit
  • PATCH api/inventory/warehouses/{warehouse}
  • DELETE api/inventory/warehouses/{warehouse}
  • GET api/inventory/warehouses/initTable
  • GET api/inventory/warehouses/tableData
  • GET api/inventory/warehouses/exportExcel
  • GET api/inventory/warehouses/options

Positions:

  • GET api/inventory/positions/create
  • POST api/inventory/positions
  • GET api/inventory/positions/{position}/edit
  • PATCH api/inventory/positions/{position}
  • DELETE api/inventory/positions/{position}
  • GET api/inventory/positions/initTable
  • GET api/inventory/positions/tableData
  • GET api/inventory/positions/exportExcel
  • GET api/inventory/positions/show
  • GET api/inventory/positions/{product}/{warehouse?}
  • POST api/inventory/positions/move/{product}/{from}/{to}

Labels:

  • GET api/inventory/labels
  • GET api/inventory/labels/options

Service surface

  • Inventory::insert()
  • Inventory::undoInsert()
  • Inventory::move()
  • Inventory::fulfill()
  • Inventory::undoFulfill()
  • Inventory::reserve()
  • Inventory::swapReservations()
  • Inventory::cancelReservation()
  • Inventory::supplementInReservations()
  • Inventory::supplementProductReservations()
  • Inventory::available()
  • Inventory::reservedQuantity()
  • Inventory::locations()
  • Inventory::positionsQuantity()
  • Inventory::remainingQuantity()
  • Inventory::updateStock()

Depends On

Required Enso packages:

  • laravel-enso/addresses ↗
  • laravel-enso/commercial ↗
  • laravel-enso/core ↗
  • laravel-enso/data-import ↗
  • laravel-enso/dynamic-methods ↗
  • laravel-enso/forms ↗
  • laravel-enso/helpers ↗
  • laravel-enso/migrator ↗
  • laravel-enso/product-lots ↗
  • laravel-enso/products ↗
  • laravel-enso/select ↗
  • laravel-enso/tables ↗
  • laravel-enso/track-who ↗

Companion frontend package:

  • @enso-ui/inventory ↗
Edit this page on GitHub
Last Updated: 4/20/2026, 6:09:20 PM
Prev
Interactions
Next
IO