Add (vite build)

This commit is contained in:
2023-09-21 23:58:23 +08:00
parent d8ed8bdb1d
commit 18705bd5e4
39 changed files with 3686 additions and 1221 deletions

View File

@@ -2,10 +2,8 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Category;
use Illuminate\Database\Seeder;
class CategorySeeder extends Seeder
{
@@ -23,8 +21,8 @@ public function run(): void
['name' => 'Information Technology'],
['name' => 'Marketing'],
['name' => 'Office'],
['name' => 'Telecommunications']
]
['name' => 'Telecommunications'],
],
],
[
'name' => 'Entertainment',
@@ -33,8 +31,8 @@ public function run(): void
['name' => 'Film & Television'],
['name' => 'Games & Toys'],
['name' => 'Music and Video'],
['name' => 'Adult Entertainment']
]
['name' => 'Adult Entertainment'],
],
],
['name' => 'Food & Drink'],
[
@@ -43,14 +41,14 @@ public function run(): void
['name' => 'Collectibles'],
['name' => 'Pets'],
['name' => 'Photography'],
['name' => 'Hunting & Fishing']
]
['name' => 'Hunting & Fishing'],
],
],
[
'name' => 'Education',
'children' => [
['name' => 'Languages']
]
['name' => 'Languages'],
],
],
['name' => 'Law'],
['name' => 'Politics'],
@@ -59,14 +57,14 @@ public function run(): void
'children' => [
['name' => 'Home & Garden'],
['name' => 'Clothing & Accessories'],
['name' => 'Computer & Electronics']
]
['name' => 'Computer & Electronics'],
],
],
[
'name' => 'Religion & Spirituality',
'children' => [
['name' => 'Holistic Health']
]
['name' => 'Holistic Health'],
],
],
['name' => 'Real Estate'],
['name' => 'Social Networks'],
@@ -75,39 +73,35 @@ public function run(): void
'children' => [
['name' => 'Family'],
['name' => 'Wedding'],
['name' => 'Immigration']
]
['name' => 'Immigration'],
],
],
[
'name' => 'Wellness',
'children' => [
['name' => 'Health & Beauty'],
['name' => 'Psychology & Psychotherapy']
]
['name' => 'Psychology & Psychotherapy'],
],
],
[
'name' => 'Tips & Tricks',
'children' => [
['name' => 'How to']
]
['name' => 'How to'],
],
],
[
'name' => 'Travel',
'children' => [
['name' => 'Holiday'],
['name' => 'World Festivals'],
['name' => 'Outdoors']
]
['name' => 'Outdoors'],
],
],
];
foreach ($categories as $category)
{
$node = Category::create($category);
foreach ($categories as $category) {
$node = Category::create($category);
}
}
}