Skip to main content

Multi-Vendor E-Commerce Database Example

This repository is an example of a complex Laravel database with migrations/models/factories/seeders.

You can find Database Seeders inside the repository, which will generate fake data for you:

database/seeders/DatabaseSeeder.php

class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call([
RoleSeeder::class,
PermissionSeeder::class,
RolePermissionSeeder::class,
 
OrderStatusSeeder::class,
OrderRefundStatusSeeder::class,
OrderReturnStatusSeeder::class,
OrderShipmentStatusSeeder::class,
PaymentMethodSeeder::class,
ProductStatusSeeder::class,
EmailCampaignStatusSeeder::class,
 
UserSeeder::class,
UserAddressSeeder::class,
 
VendorSeeder::class,
 
ProductCategorySeeder::class,
ProductAttributeSeeder::class,
ProductSeeder::class,
ProductReviewSeeder::class,
 
OrderSeeder::class,
 
PaymentVendorSeeder::class,
VendorSettingsSeeder::class,
VendorPaymentsSeeder::class,
VendorReviewsSeeder::class,
 
CouponSeeder::class,
ReviewSeeder::class,
WishlistSeeder::class,
 
CartSeeder::class,
CartItemSeeder::class,
 
EmailCampaignSeeder::class,
PromotionSeeder::class,
]);
}
}

In this example, we want you to be curious and play with different queries and even attempt to build the system yourself.

Want to Get Access to GitHub Repository?

Unlock the complete README, installation instructions, code walkthrough, and direct access to clone the repository. Join our premium membership to access all project examples.

Full Source Code
Clone and customize
Documentation
Complete setup guides
All Examples
16 premium projects
Become a Premium Member for $129/year or $29/month

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.