Laravel migrations, models and Nova resources for the creation of an ecommerce site
ricadesign/laravel-ecommerce-data-model is a Laravel package for laravel migrations, models and nova resources for the creation of an ecommerce site.
It currently has 4 GitHub stars and 1 downloads on Packagist (latest version v0.1.1).
Install it with composer require ricadesign/laravel-ecommerce-data-model.
Discover more Laravel packages by ricadesign
or browse all Laravel packages to compare alternatives.
Last updated
Laravel migrations, models and Nova resources for the creation of an ecommerce site
Begin by pulling in the package through Composer.
composer require ricadesign/laravel-ecommerce-data-model
php artisan vendor:publish --tag=ricadesign/laravel-ecommerce-data-model
Add fields to create_features_table migration. Edit other migrations as needed before running them.
If needed, call the following seeders from your main seeder. Make sure to add the relationships below on your User model before doing so:
$this->call([
CategorySeeder::class,
ProductSeeder::class,
OrderSeeder::class,
]);
public function addresses()
{
return $this->hasMany(Address::class);
}
public function orders()
{
return $this->hasMany(Order::class);
}