40 lines
1.0 KiB
PHP
40 lines
1.0 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use App\Models\Hospital;
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
|
||
|
|
class HospitalsSeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
Schema::disableForeignKeyConstraints();
|
||
|
|
Hospital::truncate();
|
||
|
|
|
||
|
|
$data = [
|
||
|
|
[
|
||
|
|
'name' => 'Shree Evershine Paradise Shwetamber Murtipujak Tapagach Sangh',
|
||
|
|
'contact_name' => 'Tejas Jain',
|
||
|
|
'email' => 'arhamvasupujya@gmail.com',
|
||
|
|
'alternative_email' => 'arhamvasupujya@gmail.com',
|
||
|
|
'address' => '120, Feet Road, Thakur Village, Opp. Viceroy Court, kandivali(East), Mumbai - 400 101',
|
||
|
|
'city'=> 'Mumbai',
|
||
|
|
'state'=> 'maharashtra',
|
||
|
|
'benefits' => '10% discount',
|
||
|
|
'status' => 1,
|
||
|
|
'created_at' => now(),
|
||
|
|
'updated_at' => now(),
|
||
|
|
]
|
||
|
|
];
|
||
|
|
|
||
|
|
Hospital::insert($data);
|
||
|
|
}
|
||
|
|
}
|