PHPackages                             mendela92/laravel-stock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mendela92/laravel-stock

ActiveLibrary

mendela92/laravel-stock
=======================

Keep stock for Eloquent models

v1.0.0(3y ago)0411MITPHPPHP ^7.2|^8.0

Since Dec 14Pushed 3y agoCompare

[ Source](https://github.com/mendela1992/laravel-stock)[ Packagist](https://packagist.org/packages/mendela92/laravel-stock)[ Docs](https://github.com/mendela1992/laravel-stock)[ Patreon](https://www.patreon.com/appstract)[ RSS](/packages/mendela92-laravel-stock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Stock
=============

[](#laravel-stock)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Keep stock for Eloquent models. This package will track stock mutations for your models. You can increase, decrease, clear and set stock. It's also possible to check if a model is in stock (on a certain date/time). But also watches the level of stock of a model and sends a notification via Email

This package was originally a fork form [laravel-stock](https://github.com/appstract/laravel-stock)

Functionality
-------------

[](#functionality)

- Increase stocks
- Decrease stocks
- Clear stocks
- Set stocks
- Check if model has stock or not (on a certain date/time).
- Send notification when a pre-defined stock level is reached

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mendela92/laravel-stock
```

By running `php artisan vendor:publish --provider="Mendela92\Stock\StockServiceProvider"`, it will publish migrations and config file.

The configuration file looks this:

```
