<?php

use App\Http\Controllers\V1\GlobalConstantsRoles;
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;

class RolesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
//        $role_admin = new Role();
//        $role_admin->name = 'SuperAdmin';
//        $role_admin->guard_name = 'api';
//        $role_admin->save();

        $role_admin = new Role();
        $role_admin->name = GlobalConstantsRoles::SalesPerson;
        $role_admin->guard_name = 'api';
        $role_admin->save();
    }
}
