parsaaghayi-backend/database/seeders/Website/AboutMeSeeder.php

62 lines
2.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders\Website;
use App\Models\Website\AboutMe;
use App\Models\Website\Skill;
use Illuminate\Database\Seeder;
class AboutMeSeeder extends Seeder
{
public function run()
{
$aboutMe = AboutMe::create([
'image' => '/images/profile.png',
'translations' => [
'title' => [
'en' => 'About Me',
'fa' => 'درباره من',
],
'description' => [
'en' => 'With over 10 years of experience in web development, I bridge the gap between pixel-perfect frontend engineering and robust backend architecture. Specialized in refactoring legacy codebases, optimizing core web vitals, and building scalable enterprise-grade Next.js applications.',
'fa' => 'با بیش از ۱۰ سال تجربه در دنیای توسعه وب، مسیر کاری من ترکیبی از مهندسی دقیق فرانت‌اند و درک عمیق از معماری بک‌اند است. تخصص اصلی من در بازطراحی و Refactor کدهای پیچیده، بهینه‌سازی Performance پروژه‌های بزرگ Next.js و پیاده‌سازی زیرساخت‌های پایدار وب است.',
],
],
]);
$skills = [
[
'image' => '/images/frontend.png',
'percentage' => 100,
'link' => '#',
'translations' => [
'title' => ['en' => 'React / Next.js / TypeScript', 'fa' => 'React / Next.js / TypeScript'],
'description' => ['en' => 'Core Tech', 'fa' => 'تکنولوژی‌های اصلی'],
],
],
[
'image' => '/images/backend.png',
'percentage' => 100,
'link' => '#',
'translations' => [
'title' => ['en' => 'Laravel / PHP / MySQL', 'fa' => 'Laravel / PHP / MySQL'],
'description' => ['en' => 'Backend & Tools', 'fa' => 'بک‌اند و ابزارها'],
],
],
[
'image' => '/images/ui.png',
'percentage' => 100,
'link' => '#',
'translations' => [
'title' => ['en' => 'TDD / Clean Architecture', 'fa' => 'TDD / Clean Architecture'],
'description' => ['en' => 'Architecture & Others', 'fa' => 'معماری و سایر موارد'],
],
],
];
foreach ($skills as $skillData) {
$aboutMe->skills()->create($skillData);
}
}
}