database/seeds/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        User::create([
            'name' => 'Ricardo Monroy',
            'email' => 'rmonroy.rodriguez@gmail.com',
            'email_verified_at' => now(),
            'password' => bcrypt('Spawn2001!'), 
            'remember_token' => Str::random(10),
        ]);
        User::create([
            'name' => 'Usuario Generico',
            'email' => 'usuario@ejemplo.com',
            'email_verified_at' => now(),
            'password' => bcrypt('12345678'), 
            'remember_token' => Str::random(10),
        ]);
        Role::create([
        	'name'		=> 'Programador',
        	'slug'  	=> 'programmer',
        	'special' 	=> 'all-access'
        ]);
        Role::create([
        	'name'		=> 'Usuario',
        	'slug'  	=> 'user',
        	'special' 	=> 'no-access'
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => 'Ricardo Monroy' , 'email' => 'rmonroy.rodriguez@gmail.com' , 'email_verified_at' => now ( ) , 'password' => bcrypt ( 'Spawn2001!' ) , 'remember_token' => Str :: random ( 10 ) , ] ) ; User :: create ( [ 'name' => 'Usuario Generico' , 'email' => 'usuario@ejemplo.com' , 'email_verified_at' => now ( ) , 'password' => bcrypt ( '12345678' ) , 'remember_token' => Str :: random ( 10 ) , ] ) ; Role :: create ( [ 'name' => 'Programador' , 'slug' => 'programmer' , 'special' => 'all-access' ] ) ; Role :: create ( [ 'name' => 'Usuario' , 'slug' => 'user' , 'special' => 'no-access' ] ) ; }
Run the database seeds.
Run the database seeds .
// password // password