30 lines
607 B
PHP
30 lines
607 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Lists\UserPosition;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserPositionSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$positions = [
|
|
UserPosition::PROFESSOR,
|
|
UserPosition::RESEARCHER,
|
|
UserPosition::PHD,
|
|
UserPosition::STUDENT,
|
|
UserPosition::ADMINISTRATIVE,
|
|
];
|
|
|
|
foreach ($positions as $position) {
|
|
UserPosition::updateOrCreate(
|
|
['value' => $position]
|
|
);
|
|
}
|
|
}
|
|
}
|