36 lines
690 B
PHP
36 lines
690 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Group;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class GroupSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$group = [
|
|
1 => [
|
|
'name' => 'Premium Hosting',
|
|
'type_id' => 3,
|
|
'status' => 1
|
|
],
|
|
2 => [
|
|
'name' => 'VPS NVME',
|
|
'type_id' => 4,
|
|
'status' => 1
|
|
]
|
|
];
|
|
foreach ($group as $item)
|
|
{
|
|
Group::create($item);
|
|
}
|
|
}
|
|
}
|