firstcommit
This commit is contained in:
0
Modules/ContactUs/database/seeders/.gitkeep
Normal file
0
Modules/ContactUs/database/seeders/.gitkeep
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user