Files
parsaaghayi-backend/database/seeders/AboutMeSeeder.php
T
2024-10-13 20:16:08 +03:30

70 lines
2.7 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\AboutMe;
use App\Models\Skill;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class AboutMeSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run()
{
// ایجاد رکورد AboutMe
$aboutMe = AboutMe::create([
'title' => 'About Me',
'description' => 'I am a web developer with over 10 years of experience in creating dynamic and user-centric web applications. Specializing in React and Next.js, I build scalable solutions that enhance performance and user experience. I enjoy tackling complex challenges, from improving legacy systems to developing new applications. My focus on frontend development and seamless backend integration allows me to deliver innovative results while staying current with industry trends.',
'image' => '/images/profile.png',
]);
// ایجاد رکوردهای Skill
Skill::create([
'title' => 'HTML & CSS (SASS, Responsive Design)',
'image' => '/images/frontend.png',
'description' => 'HTML & CSS (SASS, Responsive Design) description',
'link' => 'http://example.com/frontend',
'percentage' => 95,
'about_me_id' => $aboutMe->id,
]);
Skill::create([
'title' => 'React.js and Next.js Development',
'image' => '/images/backend.png',
'description' => 'React.js and Next.js Development description.',
'link' => 'http://example.com/backend',
'percentage' => 90,
'about_me_id' => $aboutMe->id,
]);
Skill::create([
'title' => 'Backend Development (RESTful APIs, Laravel)',
'image' => '/images/ui.png',
'description' => 'Backend Development (RESTful APIs, Laravel) description.',
'link' => 'http://example.com/ui',
'percentage' => 85,
'about_me_id' => $aboutMe->id,
]);
Skill::create([
'title' => 'WordPress Development and Customization',
'image' => '/images/ux.png',
'description' => 'WordPress Development and Customization description.',
'link' => 'http://example.com/ux',
'percentage' => 90,
'about_me_id' => $aboutMe->id,
]);
Skill::create([
'title' => 'Version Control (Git, GitHub)',
'image' => '/images/ux.png',
'description' => 'Version Control (Git, GitHub) description.',
'link' => 'http://example.com/ux',
'percentage' => 80,
'about_me_id' => $aboutMe->id,
]);
}
}