Lager-v3/database/seeders/LoanerTypeSeeder.php

26 lines
434 B
PHP

<?php
namespace Database\Seeders;
use App\Models\LoanerType;
use Illuminate\Database\Seeder;
class LoanerTypeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$items = [
['name' => 'adUser'],
['name' => 'nadUser'],
];
foreach ($items as $item) {
LoanerType::create($item);
}
}
}