DatabaseSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
nc 1
nop 0
dl 0
loc 7
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Workbench\Database\Seeders;
4
5
use Illuminate\Database\Seeder;
6
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
7
use Workbench\Database\Factories\UserFactory;
8
9
class DatabaseSeeder extends Seeder
10
{
11
    /**
12
     * Seed the application's database.
13
     */
14
    public function run(): void
15
    {
16
        // UserFactory::new(10)->create();
17
18
        UserFactory::new()->create([
19
            'name' => 'Test User',
20
            'email' => '[email protected]',
21
        ]);
22
    }
23
}
24