database/seeds/UsersTablesSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $administrador = User::create([
            'name' => 'Darwin Perez Albores',
            'email' => 'perezalboresd@gmail.com',
            'password' => bcrypt('123456'),
            'tipouser' => 'administrador',
        ]);
        $administrador->assignRole('admin');
    }
public function run ( ) { $ administrador = User :: create ( [ 'name' => 'Darwin Perez Albores' , 'email' => 'perezalboresd@gmail.com' , 'password' => bcrypt ( '123456' ) , 'tipouser' => 'administrador' , ] ) ; $ administrador -> assignRole ( 'admin' ) ; }
Run the database seeds.
Run the database seeds .