Passed
Push — master ( af6f81...caf93d )
by Keoghan
04:44 queued 11s
created

SettingsSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
use App\Models\Setting;
4
use Illuminate\Database\Seeder;
5
6
class SettingsSeeder extends Seeder
7
{
8
    /**
9
     * Run the database seeds.
10
     *
11
     * @return void
12
     */
13
    public function run()
14
    {
15
        Setting::create(['name' => 'home', 'value' => '']);
16
        Setting::create(['name' => 'domain', 'value' => 'test']);
17
        Setting::create(['name' => 'use_mysql', 'value' => 'on']);
18
        Setting::create(['name' => 'use_redis', 'value' => 'on']);
19
        Setting::create(['name' => 'use_browser', 'value' => 'on']);
20
        Setting::create(['name' => 'host_machine_name', 'value' => 'host.docker.internal']);
21
    }
22
}
23