Lager-v3/database/seeders/LogActionSeeder.php

43 lines
1.0 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\LogAction;
use App\Models\NoteType;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class LogActionSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$items = [
['name' => 'created'],
['name' => 'edited'],
['name' => 'deleted'],
['name' => 'restored'],
['name' => 'force_deleted'],
['name' => 'lent'],
['name' => 'adjusted'],
['name' => 'returned'],
['name' => 'note'],
['name' => 'reserved'],
['name' => 'cancelled'],
['name' => 'validated'],
['name' => 'set up'],
['name' => 'picked up'],
['name' => 'amount_added'],
['name' => 'amount_removed'],
];
foreach ($items as $item) {
LogAction::create($item);
}
}
}