birzha-legalizasia/database/seeders/ResolutionSeeder.php

36 lines
963 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use App\Models\Resolution;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class ResolutionSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$resolutions = [
['title' => 'Разрешить'],
['title' => 'Отказать'],
['title' => 'Доработать'],
['title' => 'На рассмотрении'],
['title' => 'На рассмотрение ВО'],
['title' => 'На рассмотрение ЮО'],
['title' => 'На оплату'],
['title' => 'Возврат'],
['title' => 'Аннулирован'],
['title' => 'Восстановлен']
];
foreach ($resolutions as $key => $value) {
Resolution::create($value);
}
}
}