How azkachirzasaifanichasan/penjualan-laravel works
This Laravel point-of-sale app lets a shop operator manage inventory, create sales, review transaction history and details, and view sales and low-stock totals. The main flow routes web requests to controllers, which validate input, use Eloquent models for inventory and transaction work, and return Blade views. The transaction controller explicitly creates sale records and details while decrementing stock. The README identifies MySQL, but the excerpts do not establish specific model-to-database calls; unshown implementation links are omitted.
Main entry points: TransaksiController.php Transaction controller · web.php Web routes · DetailTransaksi.php Transaction details · Barang.php Inventory model
Components 20
Web interface
- Web routes
routes/web.php - Inventory screens
resources/views/barang - Dashboard screen
resources/views/dashboard.blade.php - Transaction screens
resources/views/transaksi - Application layout
resources/views/layouts/app.blade.php
Inventory
- Inventory controller
app/Http/Controllers/BarangController.php - Inventory model
app/Models/Barang.php - Inventory seeder
database/seeders/BarangSeeder.php
Sales
- Dashboard controller
app/Http/Controllers/DashboardController.php - Transaction controller
app/Http/Controllers/TransaksiController.php - Transaction model
app/Models/Transaksi.php - Transaction details
app/Models/DetailTransaksi.php
Laravel runtime
- Base controller
app/Http/Controllers/Controller.php - User model
app/Models/User.php - Application bootstrap
bootstrap/app.php - HTTP entry point
public/index.php - App service provider
app/Providers/AppServiceProvider.php - Provider registration
bootstrap/providers.php - Seeder entry point
database/seeders/DatabaseSeeder.php
Other components
- Shop operator
Connections 24
- Shop operator → Web routes: sends requests
routes/web.php - Web routes → Inventory controller: dispatches
routes/web.php - Web routes → Dashboard controller: dispatches
routes/web.php - Web routes → Transaction controller: dispatches
routes/web.php - Inventory controller → Inventory model: reads and writes
app/Http/Controllers/BarangController.php - Inventory controller → Inventory screens: renders
app/Http/Controllers/BarangController.php - Dashboard controller → Inventory model: reads
app/Http/Controllers/DashboardController.php - Dashboard controller → Transaction model: reads
app/Http/Controllers/DashboardController.php - Dashboard controller → Dashboard screen: renders
app/Http/Controllers/DashboardController.php - Transaction controller → Inventory model: reads and updates
app/Http/Controllers/TransaksiController.php - Transaction controller → Transaction model: creates and reads
app/Http/Controllers/TransaksiController.php - Transaction controller → Transaction details: creates details
app/Http/Controllers/TransaksiController.php - Transaction controller → Transaction screens: renders
app/Http/Controllers/TransaksiController.php - Inventory model → Transaction details: has details
app/Models/Barang.php - Transaction model → Transaction details: has details
app/Models/Transaksi.php - Transaction details → Inventory model: belongs to
app/Models/DetailTransaksi.php - Transaction details → Transaction model: belongs to
app/Models/DetailTransaksi.php - HTTP entry point → Application bootstrap: loads
public/index.php - Application bootstrap → Web routes: configures routing
bootstrap/app.php - Provider registration → App service provider: registers
bootstrap/providers.php - Seeder entry point → Inventory seeder: runs
database/seeders/DatabaseSeeder.php - Application layout → Inventory screens: provides layout
- Application layout → Dashboard screen: provides layout
- Application layout → Transaction screens: provides layout