How justtrona/school-canteen-inventory-system works
This is a Laravel/Inertia inventory and retail-operations application. Staff sign in, manage catalog and suppliers, receive or release stock, and review movement history; superadmins additionally access POS, orders, payments, and sales views. Controllers are the route-dispatched application layer, Eloquent models represent persistent domain state, and Inertia serves the React pages. The source excerpts show key inventory writes and authentication, while operations-controller implementations and frontend details were not sampled; those capabilities are retained from the route index without speculative internal links.
Main entry points: web.php Web routes · StockInController.php Stock receiving · Product.php Products · StockMovement.php Stock movements
Components 25
Web entry
- Web routes
backend/routes/web.php - Session authentication
backend/app/Http/Controllers/Auth/AuthenticatedSessionController.php - Access middleware
backend/app/Http/Middleware - Inertia React pages
backend/resources/js/Pages
Inventory management
- Inventory dashboard
backend/app/Http/Controllers/InventoryDashboardController.php - Catalog management
backend/app/Http/Controllers/ProductController.php - Category management
backend/app/Http/Controllers/CategoryController.php - Supplier management
backend/app/Http/Controllers/SupplierController.php - Stock receiving
backend/app/Http/Controllers/StockInController.php - Stock release
backend/app/Http/Controllers/StockOutController.php - Stock history
backend/app/Http/Controllers/StockHistoryController.php
Retail operations
- Point of sale
backend/app/Http/Controllers/POSController.php - Order management
backend/app/Http/Controllers/OrderController.php - Payment records
backend/app/Http/Controllers/PaymentController.php - Sales reporting
backend/app/Http/Controllers/SalesController.php
Domain data
- Products
backend/app/Models/Product.php - Categories
backend/app/Models/Category.php - Suppliers
backend/app/Models/Supplier.php - Stock movements
backend/app/Models/StockMovement.php - Receiving receipts
backend/app/Models/StockInReceipt.php - Orders and items
backend/app/Models/Order.php - Order items
backend/app/Models/OrderItem.php - Payments
backend/app/Models/Payment.php - User accounts
backend/app/Models/User.php
Other components
- Staff user
Connections 36
- Staff user → Web routes: uses
backend/routes/web.php - Web routes → Session authentication: routes login
backend/routes/web.php - Session authentication → User accounts: authenticates
backend/app/Http/Controllers/Auth/AuthenticatedSessionController.php - Web routes → Access middleware: protects routes
backend/routes/web.php - Web routes → Inventory dashboard: dispatches
backend/routes/web.php - Web routes → Catalog management: dispatches
backend/routes/web.php - Web routes → Category management: dispatches
backend/routes/web.php - Web routes → Supplier management: dispatches
backend/routes/web.php - Web routes → Stock receiving: dispatches
backend/routes/web.php - Web routes → Stock release: dispatches
backend/routes/web.php - Web routes → Stock history: dispatches
backend/routes/web.php - Web routes → Point of sale: dispatches
backend/routes/web.php - Web routes → Order management: dispatches
backend/routes/web.php - Web routes → Payment records: dispatches
backend/routes/web.php - Web routes → Sales reporting: dispatches
backend/routes/web.php - Session authentication → Inertia React pages: renders login
backend/app/Http/Controllers/Auth/AuthenticatedSessionController.php - Catalog management → Products: reads and writes
backend/app/Http/Controllers/ProductController.php - Catalog management → Categories: reads
backend/app/Http/Controllers/ProductController.php - Category management → Categories: manages
backend/app/Http/Controllers/CategoryController.php - Supplier management → Suppliers: manages
backend/app/Http/Controllers/SupplierController.php - Stock receiving → Products: updates stock
backend/app/Http/Controllers/StockInController.php - Stock receiving → Suppliers: validates supplier
backend/app/Http/Controllers/StockInController.php - Stock receiving → Stock movements: records
backend/app/Http/Controllers/StockInController.php - Stock receiving → Receiving receipts: creates receipt
backend/app/Http/Controllers/StockInController.php - Stock release → Products: updates stock
backend/app/Http/Controllers/StockOutController.php - Stock release → Stock movements: records
backend/app/Http/Controllers/StockOutController.php - Stock history → Stock movements: queries history
backend/app/Http/Controllers/StockHistoryController.php - Inventory dashboard → Products: queries
backend/app/Http/Controllers/InventoryDashboardController.php - Inventory dashboard → Stock movements: queries
backend/app/Http/Controllers/InventoryDashboardController.php - Point of sale → Orders and items: uses
backend/app/Http/Controllers/POSController.php - Order management → Orders and items: uses
backend/app/Http/Controllers/OrderController.php - Order management → Order items: uses
- Payment records → Payments: uses
backend/app/Http/Controllers/PaymentController.php - Sales reporting → Orders and items: uses
backend/app/Http/Controllers/SalesController.php - Sales reporting → Order items: uses
backend/app/Http/Controllers/SalesController.php - Inertia React pages → Web routes: submits requests