How pendeks/sokotani works
SokoTani is a Laravel agricultural marketplace. Buyers and farmers register or sign in, browse searchable listings and farmer profiles, then submit and negotiate bulk offers through acceptance or completion; admins verify farmer accounts. The diagram follows the shown route registration, marketplace queries and offer mutations, while preserving profile verification, notification and role-based branches documented by the README. Some controller links are visible in the route index, but unsampled implementation details are not inferred.
Main entry points: web.php Web routes · OfferController.php Offer negotiation · User.php User accounts and roles · MarketplaceController.php Catalog and listings
Components 16
Web entry
- Route registration
app/Providers/RouteServiceProvider.php - Web routes
routes/web.php
Marketplace
- Catalog and listings
app/Http/Controllers/MarketplaceController.php - Catalog screens
resources/views/marketplace/index.blade.php - Product records
app/Models/Product.php
Offers and activity
- Offer negotiation
app/Http/Controllers/OfferController.php - Offer screens
resources/views/offers/index.blade.php - Offer records
app/Models/Offer.php - Offer notifications
app/Notifications/OfferActivityNotification.php - Notification center
app/Http/Controllers/NotificationController.php
Accounts and trust
- Sign-in and registration
app/Http/Controllers/AuthController.php - Farmer profiles
app/Http/Controllers/FarmerProfileController.php - Public and edit profiles
resources/views/farmers/show.blade.php - Farmer verification
app/Http/Controllers/AdminFarmerController.php - User accounts and roles
app/Models/User.php
Other components
- Buyers, farmers, admins
Connections 19
- Buyers, farmers, admins → Route registration: send requests
- Route registration → Web routes: loads routes
app/Providers/RouteServiceProvider.php - Web routes → Sign-in and registration: routes to
routes/web.php - Web routes → Catalog and listings: routes to
routes/web.php - Web routes → Farmer profiles: routes to
routes/web.php - Web routes → Farmer verification: routes to
routes/web.php - Web routes → Offer negotiation: routes to
routes/web.php - Web routes → Notification center: routes to
routes/web.php - Catalog and listings → Product records: queries and updates
app/Http/Controllers/MarketplaceController.php - Catalog and listings → Catalog screens: renders
app/Http/Controllers/MarketplaceController.php - Offer negotiation → Product records: locks and updates
app/Http/Controllers/OfferController.php - Offer negotiation → Offer records: creates and updates
app/Http/Controllers/OfferController.php - Offer negotiation → Offer notifications: dispatches
app/Http/Controllers/OfferController.php - Offer negotiation → Offer screens: renders
- Sign-in and registration → User accounts and roles: creates account
app/Http/Controllers/AuthController.php - Farmer profiles → User accounts and roles: updates profile
app/Http/Controllers/FarmerProfileController.php - Farmer profiles → Public and edit profiles: renders
app/Http/Controllers/FarmerProfileController.php - Farmer verification → User accounts and roles: verifies farmer
app/Http/Controllers/AdminFarmerController.php - Notification center → User accounts and roles: reads activity