38 lines
665 B
PHP
38 lines
665 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Profession;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class ProfessionSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$inputs = [
|
|
'Doctor',
|
|
'Business',
|
|
'IT',
|
|
'Student',
|
|
'Architect',
|
|
'Teacher',
|
|
'Lawyer',
|
|
'CA',
|
|
'Scientist',
|
|
'Housewife',
|
|
'Other'
|
|
];
|
|
|
|
foreach ($inputs as $input) {
|
|
Profession::create([
|
|
'name' => $input
|
|
]);
|
|
}
|
|
}
|
|
}
|