Jagepard/Rudra-Framework

View on GitHub
app/Ship/Seed/Users_21012021144905_seed.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Ship\Seed;

use Rudra\Auth\AuthFacade as Auth;

class Users_21012021144905_seed extends AbstractSeed
{
    public function create(): void
    {
        $table  = "users";
        $fields = [
            "name"     => "Admin",
            "email"    => "admin@admin.com",
            "password" => Auth::bcrypt('password'),
            "role"     => "admin",
            "status"   => 1,
        ];

        $this->execute($table, $fields);
    }
}