Users_21012021144905_seed::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 0
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Ship\Seed;
4
5
use Rudra\Auth\AuthFacade as Auth;
6
7
class Users_21012021144905_seed extends AbstractSeed
8
{
9
    public function create(): void
10
    {
11
        $table  = "users";
12
        $fields = [
13
            "name"     => "Admin",
14
            "email"    => "[email protected]",
15
            "password" => Auth::bcrypt('password'),
16
            "role"     => "admin",
17
            "status"   => 1,
18
        ];
19
20
        $this->execute($table, $fields);
21
    }
22
}
23