Stock Management System 📦

🚀 A modern Laravel application for teams that need a single source of truth for stock levels, supplier relationships, and purchasing workflows.
🧭 Table of Contents
✨ Overview
Stock Management System helps retail and wholesale teams keep inventory, supplier, and purchasing data consistent and actionable. The platform streamlines the full lifecycle of stock management—from cataloging brands and SKUs to reconciling supplier invoices and generating printable PDFs for every transaction.
🌟 Key Features
- Centralized Inventory: Create, categorize, and update product data with real-time stock balances.
- Invoice Engine: Produce PDF invoices for new stock entries and adjustments with a single click.
- Supplier CRM: Track supplier metadata, payment history, and outstanding balances in one module.
- Payment Configuration: Tailor payment methods to match internal accounting guidelines.
- Audit-Ready Logs: Preserve every movement in a relational database for later reporting.
- Responsive UI: Bootstrap-powered dashboards provide clarity across devices.
🧱 Technology Stack
- Backend: Laravel 5.5, PHP 7.1+
- Frontend: Blade templates, Bootstrap, vanilla JavaScript
- Tooling: Laravel Mix, Webpack, npm
- Database: MySQL (or any Laravel-supported relational database)
- PDF Generation: DomPDF integration for high-fidelity invoice exports
🗂️ Project Structure
Stock-Management/
├── app/
│ ├── Http/
│ │ ├── Controllers/
│ │ ├── Requests/
│ │ └── Resources/
│ ├── Models/
│ └── Services/
├── database/
│ ├── factories/
│ ├── migrations/
│ └── seeders/
├── public/
├── resources/
│ ├── assets/
│ └── views/
├── routes/
├── tests/
└── readme.md
⚙️ Getting Started
- Clone the repository
git clone https://github.com/sangit0/Stock-Management.git
cd Stock-Management
- Install PHP dependencies
composer install
- Install JavaScript dependencies
npm install
- Bootstrap the environment
cp .env.example .env
php artisan key:generate
- Configure the database
Update
.env with your database credentials and queue/mail driver settings.
- Run migrations and seeders
php artisan migrate --seed
- Serve the application
php artisan serve
🛠 Command Cheat Sheet
# Start the local development server
php artisan serve
# Compile assets once
npm run dev
# Watch assets with hot reload
npm run watch
# Clear compiled caches
php artisan cache:clear
php artisan config:clear
# Run the test suite
php artisan test
🧪 Testing
- Feature and integration tests live under
tests/Feature.
- Execute all tests with:
php artisan test
- Use
php artisan test --filter=SupplierManagementTest to target a single suite.
💾 Database & Seeding
🖼 Screenshots

🚧 Roadmap
🤝 Contributing
Contributions, bug reports, and feature requests are always welcome! Please open an issue to discuss proposed changes or submit a pull request aligned with our coding standards.
📄 License
This project is distributed under the MIT License. See the LICENSE file for details.
评论