Skip to content

Commit 2e421de

Browse files
Merge pull request #644 from JoshKisb/main
Seed database
2 parents 17d354f + 1ced75b commit 2e421de

File tree

19 files changed

+360
-83
lines changed

19 files changed

+360
-83
lines changed

database/seeders/DummyData/DummyDataSeeder.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Database\Seeders\DummyData;
44

5+
use App\Models\ProductCategory;
56
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
67
use Illuminate\Database\Seeder;
78

@@ -13,9 +14,11 @@ class DummyDataSeeder extends Seeder
1314
public function run(): void
1415
{
1516
$this->call([
16-
CarProductCategorySeeder::class,
17-
CarProductSeeder::class,
17+
// CarProductCategorySeeder::class,
18+
// CarProductSeeder::class,
1819
ProductCollectionSeeder::class,
20+
ProductCategorySeeder::class,
21+
ProductSeeder::class,
1922
]);
2023
}
2124
}

database/seeders/DummyData/ProductCategorySeeder.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class ProductCategorySeeder extends Seeder
1313
*/
1414
public function run(): void
1515
{
16-
ProductCategory::create(['name' => 'Electronics', 'description' => 'Gadgets, devices, and home appliances.']);
17-
ProductCategory::create(['name' => 'Clothing', 'description' => 'Men’s, women’s, and kids’ fashion.']);
18-
ProductCategory::create(['name' => 'Books', 'description' => 'Fiction, non-fiction, and educational books.']);
19-
ProductCategory::create(['name' => 'Home & Kitchen', 'description' => 'Furniture, kitchen appliances, and decor.']);
20-
ProductCategory::create(['name' => 'Sports & Outdoors', 'description' => 'Sporting goods and outdoor equipment.']);
21-
ProductCategory::create(['name' => 'Health & Beauty', 'description' => 'Skincare, fitness equipment, and more.']);
22-
ProductCategory::create(['name' => 'Toys & Games', 'description' => 'Kids toys, video games, and board games.']);
16+
ProductCategory::factory()->create(['name' => 'Electronics', 'description' => 'Gadgets, devices, and home appliances.']);
17+
ProductCategory::factory()->create(['name' => 'Clothing', 'description' => 'Men’s, women’s, and kids’ fashion.']);
18+
ProductCategory::factory()->create(['name' => 'Books', 'description' => 'Fiction, non-fiction, and educational books.']);
19+
ProductCategory::factory()->create(['name' => 'Home & Kitchen', 'description' => 'Furniture, kitchen appliances, and decor.']);
20+
ProductCategory::factory()->create(['name' => 'Sports & Outdoors', 'description' => 'Sporting goods and outdoor equipment.']);
21+
ProductCategory::factory()->create(['name' => 'Health & Beauty', 'description' => 'Skincare, fitness equipment, and more.']);
22+
ProductCategory::factory()->create(['name' => 'Toys & Games', 'description' => 'Kids toys, video games, and board games.']);
2323

2424
}
2525
}

package-lock.json

Lines changed: 278 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"devDependencies": {
99
"@tailwindcss/forms": "^0.5.10",
1010
"@tailwindcss/typography": "^0.5.16",
11+
"@tailwindcss/vite": "^4.1.14",
1112
"autoprefixer": "^10.4.21",
1213
"laravel-vite-plugin": "^2.0.0",
1314
"postcss": "^8.5.6",

public/build/manifest.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"resources/css/app.css": {
3-
"file": "assets/app-tn0RQdqM.css",
3+
"file": "assets/app-jOz8CJ2s.css",
44
"src": "resources/css/app.css",
55
"isEntry": true,
66
"names": [
7-
"app.css",
8-
"theme.css"
7+
"app.css"
98
]
109
},
1110
"resources/css/filament/admin/theme.css": {
12-
"file": "assets/app-tn0RQdqM.css",
13-
"src": "resources/css/app.css",
11+
"file": "assets/theme-DiacRsF-.css",
12+
"src": "resources/css/filament/admin/theme.css",
1413
"isEntry": true,
1514
"names": [
16-
"app.css",
1715
"theme.css"
1816
]
1917
},

public/css/filament/filament/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)