api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?php
namespace Database\Seeders;
use App\Constant\Constant;
use Carbon\Carbon;
use App\Models\Relationship;
use Illuminate\Database\Seeder;
class RelationshipsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$inputs = [
'Father',
'Mother',
'Brother',
'Sister',
'Grandfather',
'Grandmother',
'Uncle',
'Aunt',
'Husband',
'Wife',
'Son',
'Daughter',
'Grandson',
'Granddaughter',
'Nephew',
'Niece',
'Father-in-law',
'Mother-in-law',
'Brother-in-law',
'Sister-in-law',
'Son-in-law',
'Daughter-in-law',
];
foreach ($inputs as $input) {
Relationship::insert([
'name' => $input,
'status' => Constant::STATUS_ONE,
'created_at' => Carbon::now(),
'updated_at' => Carbon::now()
]);
}
}
}