42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Modules\ContactUs\database\seeders;
|
|
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\ContactUs\app\Models\ContactUs;
|
|
|
|
class ContactUsDatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$contactUs = [
|
|
[
|
|
'full_name' => 'radha shyaka',
|
|
'address' => 'kathmandu, Nepal',
|
|
'email' => 'radhar@example.com',
|
|
'phone' => '9801234567',
|
|
'subject' => 'Hair transplant',
|
|
'message' => 'I wan to transplant hair. What should be process',
|
|
],
|
|
[
|
|
'full_name' => 'shyam shrestha',
|
|
'address' => 'lalitpur, Nepal',
|
|
'email' => 'shyam@example.com',
|
|
'phone' => '9801234566',
|
|
'message' => 'May i have detail about doctor for eyebrow tranplant.',
|
|
],
|
|
];
|
|
|
|
if (!empty($contactUs)) {
|
|
foreach ($contactUs as $data) {
|
|
$data['uuid'] = Str::uuid();
|
|
ContactUs::create($data);
|
|
}
|
|
}
|
|
}
|
|
}
|