ArtificerUsersSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 18 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class ArtificerUsersSeeder extends Seeder
6
{
7
    /**
8
     * Run the database seeds.
9
     *
10
     * @return void
11
     */
12
    public function run()
13
    {
14
        $model = new \Mascame\Artificer\Model\FakeModel();
15
16
        $model->setup([
17
            'table' => 'artificer_users'
18
        ]);
19
20
        $model->unguard();
21
22
        $model->create([
23
            'name' => 'Demo User',
24
            'email' => '[email protected]', // fake email
25
            'username' => 'artificer',
26
            'password' => \Hash::make('artificer'),
27
            'role' => 'admin',
28
        ]);
29
    }
30
}
31