ameringkseh/stock-management
最新稳定版本:v1.0.1
Composer 安装命令:
composer require ameringkseh/stock-management
包简介
A robust Stock Management module for Laravel applications.
README 文档
README
A simple and robust stock/inventory management module for Laravel applications. Provides a ready-to-use UI for managing product stock levels.
Features
- 📦 View all products sorted by stock level
- ✏️ Update stock quantities with validation
- 🗑️ Delete products (with image cleanup)
- ⚙️ Configurable model — use any Eloquent model
- 🎨 Pre-built Blade views
Requirements
- PHP ^8.2
- Laravel ^10.0 | ^11.0 | ^12.0
Installation
Install the package via Composer:
composer require ameringkseh/stock-management
Laravel will automatically discover the service provider.
Configuration
Publish the configuration file:
php artisan vendor:publish --tag=stock-management-config
This will create config/stock-management.php where you can specify the Eloquent model to use:
return [ 'model' => 'App\\Models\\Menu', ];
The model must have a stok (integer) attribute. Optionally, it can have a gambar (string) attribute for image management.
Usage
The package automatically registers the following routes (under web and auth middleware):
| Method | URI | Action |
|---|---|---|
| GET | /stok-management |
View stock list |
| POST | /stok-management/update |
Update stock |
| DELETE | /stok-management/{id} |
Delete product |
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 191
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-16