A modern Laravel-based inventory management system designed specifically for food restaurants to efficiently track inventory items, manage stock levels, monitor expiry dates, and streamline supplier relationships.
- Inventory Items: Create and manage food items with SKU, categories, unit costs, and pricing
- Stock Tracking: Monitor stock quantities with batch numbers and storage locations
- Expiry Management: Track expiry dates and get alerts for soon-to-expire items
- Low Stock Alerts: Automatic warnings when items fall below reorder levels
- Purchase Pricing: Track cost price for each item
- Selling Pricing: Manage customer-facing prices
- Stock Value: Calculate total inventory value at cost
- Supplier Management: Track supplier information and payment terms
- Dashboard: Real-time overview of inventory status
- Low Stock Report: Items below reorder level
- Expiry Report: Items expiring soon or already expired
- Stock Movement History: Complete audit trail of all inventory changes
- Supplier Performance: Track supplier information and payment terms
- Categories: Organize items (Vegetables, Meat, Dairy, Spices, etc.)
- Suppliers: Manage multiple suppliers with contact information
- Stock Movements: Record all stock in/out and adjustments with reasons
- Batch Tracking: Monitor product batches and expiry dates
- Framework: Laravel 11
- Database: MySQL
- Frontend: Bootstrap 5
- PHP: 8.2+
inventory_system/
├── app/Models/
│ ├── InventoryItem.php
│ ├── Stock.php
│ ├── StockMovement.php
│ ├── Category.php
│ └── Supplier.php
├── app/Http/Controllers/
│ ├── DashboardController.php
│ ├── InventoryItemController.php
│ ├── StockController.php
│ ├── CategoryController.php
│ └── SupplierController.php
├── database/migrations/
├── database/seeders/
├── resources/views/
└── routes/web.php
- PHP 8.2 or higher
- Composer
- MySQL/MariaDB
- Laragon
-
Navigate to project directory
cd c:\laragon\www\inventory_system
-
Install dependencies
composer install
-
Generate app key
php artisan key:generate
-
Configure database (.env)
DB_DATABASE=inventory_system DB_USERNAME=root DB_PASSWORD= -
Run migrations
php artisan migrate
-
Seed sample data
php artisan db:seed
-
Start server
php artisan serve
-
Access application
- URL: http://localhost:8000
- Email: admin@inventory.com
- Password: password
- InventoryItem: Food items with pricing and supplier info
- Stock: Physical inventory quantities with batch tracking
- StockMovement: Audit trail of all inventory transactions
- Category: Item categorization
- Supplier: Supplier contact and payment information
- Add Inventory Item: 📦 → Add Item
- Manage Stock: 📋 → Add/Record Stock
- View Reports:
⚠️ Low Stock, ⏰ Expiry Report - Manage Suppliers: 🤝 Suppliers
- Total inventory items count
- Active categories
- Total suppliers
- Total stock value at cost
- Low stock alerts
- Soon-to-expire items
- Recent stock movements
- User authentication
- Role-based access control foundation
- Complete audit trail
- Data validation
- CSRF protection
- 7 food categories
- 4 suppliers
- 9 sample inventory items
- Pre-loaded stock with batch numbers
- Sample stock movements
# Create new category
php artisan make:seeder CategorySeeder
# Generate model with migration
php artisan make:model Category -m
# Create controller resource
php artisan make:controller CategoryController --resourceLaravel Framework © Taylor Otwell - Licensed under the MIT license.
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
In addition, Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
You can also watch bite-sized lessons with real-world projects on Laravel Learn, where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install Laravel Boost to supercharge your AI workflow:
composer require laravel/boost --dev
php artisan boost:installBoost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.