DatabaseSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
c 1
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 1
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