How motolani/tradecropng works
This is a Laravel crop marketplace: sellers publish crop listings, buyers browse and add produce to a cart, check out, and receive a recorded payment outcome; sellers can review pending orders and order history. Authentication and account registration support both user roles. The graph follows the request and domain actions visible in the excerpts and route index. Source excerpts do not establish a payment-gateway integration or the database configuration in use, so neither is represented as a connected external service.
Main entry points: web.php Web routes · CartController.php Cart and checkout · CropController.php Crop listings · RegisterController.php Registration
Components 25
Web request
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - HTTP kernel
app/Http/Kernel.php - Web routes
routes/web.php - Route provider
app/Providers/RouteServiceProvider.php
Accounts
- Registration
app/Http/Controllers/Auth/RegisterController.php - Login
app/Http/Controllers/Auth/LoginController.php - Email verification
app/Http/Controllers/Auth/VerificationController.php - User model
app/Models/User.php
Crop marketplace
- Home browsing
app/Http/Controllers/HomeController.php - Crop listings
app/Http/Controllers/CropController.php - Crop records
app/Models/Crop.php - Crop categories
app/Models/CropCategory.php
Cart and orders
- Cart and checkout
app/Http/Controllers/CartController.php - Cart records
app/Models/Cart.php - Transactions
app/Models/Transaction.php - Orders
app/Models/Order.php - Seller order views
app/Http/Controllers/SellersController.php
Views
- Marketplace pages
resources/views/homepage.blade.php - Seller crop pages
resources/views/sellers/crop/index.blade.php - Cart and checkout pages
resources/views/cart.blade.php - Payment status page
resources/views/paymentStatus.blade.php - Seller order pages
resources/views/sellers/orders/pending.blade.php - Account pages
resources/views/auth/register.blade.php
Other components
- Visitor / user
Connections 27
- Visitor / user → HTTP entry: requests pages
public/index.php - HTTP entry → App bootstrap: loads app
public/index.php - App bootstrap → HTTP kernel: binds kernel
bootstrap/app.php - HTTP kernel → Web routes: routes requests
- Route provider → Web routes: loads web routes
app/Providers/RouteServiceProvider.php - Web routes → Registration: dispatches
routes/web.php - Web routes → Login: dispatches
routes/web.php - Web routes → Email verification: dispatches
routes/web.php - Web routes → Home browsing: dispatches
routes/web.php - Web routes → Crop listings: dispatches
routes/web.php - Web routes → Cart and checkout: dispatches
routes/web.php - Web routes → Seller order views: dispatches
routes/web.php - Registration → User model: creates account
app/Http/Controllers/Auth/RegisterController.php - Registration → Account pages: renders
- Home browsing → Marketplace pages: renders
- Crop listings → Crop records: reads and writes
app/Http/Controllers/CropController.php - Crop listings → Crop categories: reads categories
app/Http/Controllers/CropController.php - Crop listings → Seller crop pages: renders
app/Http/Controllers/CropController.php - Cart and checkout → Cart records: reads and writes
app/Http/Controllers/CartController.php - Cart and checkout → Crop records: reads and updates
app/Http/Controllers/CartController.php - Cart and checkout → User model: reads buyer
app/Http/Controllers/CartController.php - Cart and checkout → Transactions: records payment result
app/Http/Controllers/CartController.php - Cart and checkout → Orders: creates successful orders
app/Http/Controllers/CartController.php - Cart and checkout → Cart and checkout pages: renders cart and checkout
app/Http/Controllers/CartController.php - Cart and checkout → Payment status page: renders status
app/Http/Controllers/CartController.php - Seller order views → Orders: reads seller orders
app/Http/Controllers/SellersController.php - Seller order views → Seller order pages: renders order pages
app/Http/Controllers/SellersController.php