api code global jain
This commit is contained in:
44
database/seeders/MotherTongueTableSeeder.php
Normal file
44
database/seeders/MotherTongueTableSeeder.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use App\Constant\Constant;
|
||||
use App\Models\MotherTongue;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class MotherTongueTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$inputs = [
|
||||
'Hindi',
|
||||
'Gujarati',
|
||||
'Rajasthani',
|
||||
'Malayalam',
|
||||
'Panjabi',
|
||||
'Tamil',
|
||||
'Bangla',
|
||||
'Oriya',
|
||||
'Marathi',
|
||||
'Konkani',
|
||||
'Kannada',
|
||||
'Telugu',
|
||||
'Other',
|
||||
];
|
||||
|
||||
foreach ($inputs as $input) {
|
||||
MotherTongue::insert([
|
||||
'name' => $input,
|
||||
'status' => Constant::STATUS_ONE,
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now()
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user