30 lines
623 B
PHP
30 lines
623 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|
||
|
}
|