Welcome to YTUnity

One free SpiderTaz Network account works across every network site.

Featured creators

Creators on the SpiderTaz Network

Become a creator →

Stock Adjustment Module for Damage & Loss | Laravel Filament Inventory Management System | Part 17

Webslesson Guide 1 months ago

Description

In this video, we build a complete Stock Adjustment module, for our inventory management system in Laravel, letting us manually add, or subtract, stock, for real world situations, like damage, loss, expiry, or a stock count correction, each with a required reason field, recorded against the logged in user, automatically.

If you are building a stock management system in Laravel, or a warehouse management system Laravel project, this part is essential, since real inventory rarely matches the numbers on paper, and every serious inventory management software in Laravel needs a clean, auditable way, to correct that, without breaking the automatic stock tracking, we already built earlier in this series.

This is a Laravel Filament inventory management module, showing exactly how a Filament inventory app handles manual corrections, using a more advanced Observer pattern, where the direction of the change, add, or subtract, depends on what the user selects, not a fixed rule, like our Purchase, and Sale modules. If you are researching Filament inventory tracking, or looking to build your own Filament inventory system, this video walks through the complete logic, step by step.

━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 WHAT YOU WILL LEARN IN THIS VIDEO
━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Building a Stock Adjustment form with product, warehouse, type, and reason
✅ Using native(false) for a styled Filament dropdown
✅ Displaying friendly labels with formatStateUsing(), without changing stored data
✅ Auto-stamping the logged in user using mutateFormDataBeforeCreate()
✅ Building an Observer where the direction of change depends on a field value
✅ Correctly handling a type change (add to subtract) inside an updated() method

━━━━━━━━━━━━━━━━━━━━━━━━━━━
📂 FILES COVERED IN THIS VIDEO
━━━━━━━━━━━━━━━━━━━━━━━━━━━
📄 app/Filament/Resources/StockAdjustments/StockAdjustmentResource.php
📄 app/Filament/Resources/StockAdjustments/Schemas/StockAdjustmentForm.php
📄 app/Filament/Resources/StockAdjustments/Tables/StockAdjustmentsTable.php
📄 app/Filament/Resources/StockAdjustments/Pages/ListStockAdjustments.php
📄 app/Filament/Resources/StockAdjustments/Pages/CreateStockAdjustment.php
📄 app/Filament/Resources/StockAdjustments/Pages/EditStockAdjustment.php
📄 app/Observers/StockAdjustmentObserver.php
📄 app/Providers/AppServiceProvider.php

━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 BLOG POST + FULL SOURCE CODE
━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Blog Post with Source Code: https://www.webslesson.info/2026/08/laravel-13-filament-5-inventory-management-system.html

━━━━━━━━━━━━━━━━━━━━━━━━━━━
📺 COMPLETE PLAYLIST — Laravel Filament Inventory Management System
━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎬 Part 1 — Installation & Setup: https://youtu.be/796FXMF6joY
🎬 Part 2 — Database Design: https://youtu.be/5dPfGUTR9kE
🎬 Part 3 — Panel Branding & Navigation: https://youtu.be/o7jgfRGvi9s
🎬 Part 4 — Category Module: https://www.youtube.com/watch?v=UsLIgCeDshk
🎬 Part 5 — Unit Module: https://youtu.be/m8EkbuEMG-I
🎬 Part 6 — Supplier Module: https://www.youtube.com/watch?v=q7FE9loMmtM
🎬 Part 7 — Customer Module: https://youtu.be/Iy5M0yht8Fc
🎬 Part 8 — Product Module + File Upload: https://youtu.be/uZFQ2myF7nY
🎬 Part 9 — Warehouse Management: https://youtu.be/1H26vKdQFh8
🎬 Part 10 — Purchase Order Module: https://youtu.be/9novegIuDrg
🎬 Part 11 — Auto Stock Increase (Observers): https://youtu.be/rp4DGFo8blU
🎬 Part 12 — Purchase Detail View Page: https://youtu.be/HBVZ353faDk
🎬 Part 13 — Sale Management Module: https://youtu.be/VZclyNjYeX8
🎬 Part 14 — Auto Stock Decrease (Observers): https://youtu.be/7598X-LzFQc
🎬 Part 15 — Sale Detail View Page: https://youtu.be/0LCcCiau-7c
🎬 Part 16 — Stock Overview: https://youtu.be/VdpXPZHY9wk
🎬 Part 17 — Stock Adjustment: (You are here)
🎬 Part 18 — Dashboard Widgets: Coming Soon

━━━━━━━━━━━━━━━━━━━━━━━━━━━
#Laravel #Filament #LaravelInventoryManagementSystem #StockManagementSystem #WarehouseManagementSystem #FilamentInventoryManagement #FilamentInventoryApp #LaravelFilamentProject #LaravelObservers #InventoryManagementSoftware #LaravelTutorial #PHP #WebDevelopment #Laravel2026 #FilamentPHP