Files
jobifygarden/database/seeders/JobCategorySeeder.php
T

118 lines
4.1 KiB
PHP
Raw Normal View History

2026-04-03 00:39:57 +03:00
<?php
namespace Database\Seeders;
use App\Models\JobCategory;
use Illuminate\Database\Seeder;
class JobCategorySeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$categories = [
[
'name' => 'Software Development',
'slug' => 'software-development',
'description' => 'Software engineering, web development, mobile development, and programming jobs',
'icon' => 'code',
],
[
'name' => 'Data Science',
'slug' => 'data-science',
'description' => 'Data analysis, machine learning, AI, and analytics positions',
'icon' => 'chart-bar',
],
[
'name' => 'Design',
'slug' => 'design',
'description' => 'UX/UI design, graphic design, product design, and creative roles',
'icon' => 'palette',
],
[
'name' => 'Marketing',
'slug' => 'marketing',
'description' => 'Digital marketing, content marketing, SEO, and growth positions',
'icon' => 'megaphone',
],
[
'name' => 'Sales',
'slug' => 'sales',
'description' => 'Sales representatives, account executives, and business development roles',
'icon' => 'trending-up',
],
[
'name' => 'Customer Support',
'slug' => 'customer-support',
'description' => 'Customer service, technical support, and customer success positions',
'icon' => 'headset',
],
[
'name' => 'Human Resources',
'slug' => 'human-resources',
'description' => 'HR, recruiting, talent acquisition, and people operations',
'icon' => 'users',
],
[
'name' => 'Finance',
'slug' => 'finance',
'description' => 'Accounting, financial analysis, and finance management roles',
'icon' => 'dollar-sign',
],
[
'name' => 'Operations',
'slug' => 'operations',
'description' => 'Operations management, logistics, and project management',
'icon' => 'settings',
],
[
'name' => 'DevOps',
'slug' => 'devops',
'description' => 'Infrastructure, cloud engineering, SRE, and DevOps positions',
'icon' => 'server',
],
[
'name' => 'Product Management',
'slug' => 'product-management',
'description' => 'Product managers, product owners, and product leads',
'icon' => 'package',
],
[
'name' => 'Quality Assurance',
'slug' => 'quality-assurance',
'description' => 'QA engineers, testers, and quality assurance specialists',
'icon' => 'check-circle',
],
[
'name' => 'Writing',
'slug' => 'writing',
'description' => 'Content writers, copywriters, technical writers, and editors',
'icon' => 'pen',
],
[
'name' => 'Legal',
'slug' => 'legal',
'description' => 'Legal counsel, paralegals, and compliance positions',
'icon' => 'scale',
],
[
'name' => 'Healthcare',
'slug' => 'healthcare',
'description' => 'Healthcare, medical, and health-related positions',
'icon' => 'heart',
],
];
foreach ($categories as $category) {
JobCategory::updateOrCreate(
['slug' => $category['slug']],
$category
);
}
$this->command->info('Job categories seeded successfully!');
}
}