Lager-v3/database/seeders/LoanTypeSeeder.php

30 lines
623 B
PHP
Raw Permalink Normal View History

2022-09-28 07:38:08 +00:00
<?php
namespace Database\Seeders;
use App\Models\LoanerType;
use App\Models\LoanType;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class LoanTypeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$items = [
['name' => 'Loan'],
['name' => 'Reservation - Awaiting'],
['name' => 'Reservation - Set Up'],
['name' => 'Reservation - Pick Up'],
];
foreach ($items as $item) {
LoanType::create($item);
}
}
}