Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Releases: Caryley/Laravel-Inventory

v3.0.0

25 Jan 18:14
f770fb9

Choose a tag to compare

New Functionality

  • Increment inventory
$model-> incrementInventory(10); // Will increment inventory by 10.
  • DecrementInventory inventory
$model->decrementInventory(5); // Will subtract 5 from current inventory.

$model->decrementInventory(-5); // Will subtract 5 from current inventory.

Updated

  • Improved overall package performance, preventing eager loading when manipulating the inventory
  • Laravel 10 support
  • Migrate to Pest
  • Added incrementInventory()
  • Added decrementInventory()

Deprecated

  • Dropped Laravel 8 support

v2.0.0

09 Feb 01:31
0d08aab

Choose a tag to compare

Updated

  • Minimum require PHP 8.* & Laravel ^8.71
  • Support Laravel 9

Deprecated

  • None

v1.1.0

10 Aug 14:44
8d5f3f2

Choose a tag to compare

New Functionality

  • Check if a model has a valid inventory
$model->hasValidInventory(); // Return boolean

Updated

  • Merged "Fixed Warning on inInventory()" (#6)
  • For a creation of an inventory use setInventory() and avoid using createInventory() || createInventory() is now a protected method and never meant to be part of the public API.

Deprecated

  • None

v1.0.0

26 Mar 01:39
892c3ef

Choose a tag to compare

New Functionality

  • None

Updated

  • Merged "Fixed inventoriable id column on scopes" (#5)

Deprecated

  • None

v0.1.0

04 Feb 15:23
60e4b83

Choose a tag to compare

v0.1.0 Pre-release
Pre-release

New Functionality

  • Add to a nonexisting inventory
$model->addInventory(1, 'New Inventory'); // (on an empty inventory model, the package will create a new inventory with the given quantity.)

Updated

  • Added documentation to all methods.

Deprecated

  • None

Hello World!

31 Jan 22:45

Choose a tag to compare

Hello World! Pre-release
Pre-release

The Laravel Inventory package helps track an inventory on any laravel model.

The package offers the following function:

  • Set a new inventory
  • Return the current inventory
  • Add to an inventory
  • Subtract from an inventory
  • Clear an inventory
  • Return boolean if the model is in inventory
  • Return boolean if the model is not in inventory
  • Scopes