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()
    {
        $users = ['Admin','UTP','Profesor','Alumno', 'Sostenedor'];
        foreach ($users as $user) {
            DB::table('users')->insert([
                'name' => $user,
                'email' => strtolower($user).'@gmail.com',
                'password' => bcrypt('12345678'),
                'created_at' => date('Y-m-d'),
                'updated_at' => date('Y-m-d')
            ]);
        }
    }
public function run ( ) { $ users = [ 'Admin' , 'UTP' , 'Profesor' , 'Alumno' , 'Sostenedor' ] ; foreach ( $ users as $ user ) { DB :: table ( 'users' ) -> insert ( [ 'name' => $ user , 'email' => strtolower ( $ user ) . '@gmail.com' , 'password' => bcrypt ( '12345678' ) , 'created_at' => date ( 'Y-m-d' ) , 'updated_at' => date ( 'Y-m-d' ) ] ) ; } }
Run the database seeds.
Run the database seeds .