/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $user = new \App\User();
     $user->create(['role_id' => 1, 'name' => 'Jason Raimondi', 'username' => 'jasonraimondi', 'email' => '*****@*****.**', 'avatar' => '/images/cache/large/jasonraimondi.jpg', 'password' => bcrypt('jason')]);
     $user->create(['role_id' => 1, 'name' => 'Jason Raimondi1', 'username' => 'jasonraimondi1', 'email' => '*****@*****.**', 'avatar' => '/images/cache/large/jasonraimondi.jpg', 'password' => bcrypt('jason')]);
     $user->create(['role_id' => 1, 'name' => 'Jason Raimondi2', 'username' => 'jasonraimondi2', 'email' => '*****@*****.**', 'avatar' => '/images/cache/large/jasonraimondi.jpg', 'password' => bcrypt('jason')]);
     factory(App\User::class, 49)->create();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::create(['email' => '*****@*****.**', 'password' => bcrypt('1234'), 'firstname' => 'Cris', 'lastname' => 'Flores', 'company_name' => 'Wear His Word', 'company_slug' => 'wear-his-word', 'company_logo' => 'assets/images/products/wear-his-word/wearhisword.jpg', 'type' => 1, 'address' => '18 Santan, Fortune, Marikina City', 'contact_number' => '09355410254', 'contact_person' => 'Cris Flores', 'contact_email' => '*****@*****.**']);
     App\User::create(['email' => '*****@*****.**', 'password' => bcrypt('1234'), 'firstname' => 'Mark Anthony', 'lastname' => 'Muya', 'company_name' => 'C Point', 'company_slug' => 'c-point', 'company_logo' => 'assets/images/products/cpoint/cpoint.jpg', 'type' => 1, 'address' => '23 Dome St, Caloocan City', 'contact_number' => '998-1877', 'contact_person' => 'Del De Guzman', 'contact_email' => '*****@*****.**']);
     App\User::create(['email' => '*****@*****.**', 'password' => bcrypt('1234'), 'firstname' => 'Diana', 'lastname' => 'Dela Cruz', 'company_name' => 'Clothing Shop', 'company_slug' => 'clothing-shop', 'company_logo' => 'assets/images/products/clothing-shop/clothingshop.jpg', 'type' => 1, 'address' => '2014 Strata 100, Ortigas, Pasig City', 'contact_number' => '875-8521', 'contact_person' => 'Marshall Walker', 'contact_email' => '*****@*****.**']);
     App\User::create(['email' => '*****@*****.**', 'password' => bcrypt('1234'), 'firstname' => 'Jessica', 'lastname' => 'Valero', 'company_name' => 'Jessica Valero Online Shop', 'company_slug' => 'jessica-valero-online-shop', 'company_logo' => 'assets/images/products/onlineshop.jpg', 'type' => 2, 'address' => '18 Rosario St, San Pablo, Taguig City', 'contact_number' => '09156809880', 'contact_person' => 'Joanne Valero', 'contact_email' => '*****@*****.**']);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Model::unguard();
     App\User::create(['name' => 'Amitav Roy', 'email' => '*****@*****.**', 'password' => \Hash::make('pass')]);
     // $this->call(UserTableSeeder::class);
     Model::reguard();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::truncate();
     App\User::create(['name' => 'John Doe', 'email' => '*****@*****.**', 'password' => Hash::make('password')]);
     App\User::create(['name' => 'Appkr', 'email' => '*****@*****.**', 'password' => Hash::make('password')]);
     factory('App\\User', 8)->create();
 }
 public function setupFoundorAndBaseRolsPermission()
 {
     // Create Roles
     $founder = new App\Role();
     $founder->name = 'Founder';
     $founder->save();
     $admin = new App\Role();
     $admin->name = 'Admin';
     $admin->save();
     // Create User
     $user = App\User::create(['github_id' => 1, 'github_url' => 'goodgoto.com', 'name' => 'summerblue']);
     // Attach Roles to user
     $user->roles()->attach($founder->id);
     // Create Permissions
     $manageTopics = new App\Permission();
     $manageTopics->name = 'manage_topics';
     $manageTopics->display_name = 'Manage Topics';
     $manageTopics->save();
     $manageUsers = new App\Permission();
     $manageUsers->name = 'manage_users';
     $manageUsers->display_name = 'Manage Users';
     $manageUsers->save();
     // Assign Permission to Role
     $founder->perms()->sync([$manageTopics->id, $manageUsers->id]);
     $admin->perms()->sync([$manageTopics->id]);
 }
Exemple #6
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $users = [['name' => 'user1', 'email' => '*****@*****.**', 'password' => bcrypt('secret')], ['name' => 'user2', 'email' => '*****@*****.**', 'password' => bcrypt('secret')]];
     foreach ($users as $u) {
         App\User::create($u);
     }
 }
 /**
  * Run the database seeds.
  */
 public function run()
 {
     $faker = Faker::create();
     // create 10 users
     DB::table('users')->delete();
     App\User::create(['email' => '*****@*****.**', 'password' => bcrypt('secret'), 'name' => $faker->name]);
     for ($i = 1; $i <= 10; ++$i) {
         App\User::create(['email' => $faker->safeEmail, 'password' => bcrypt('secret'), 'name' => $faker->name]);
     }
     // Groups, discussions and comments
     DB::table('groups')->delete();
     DB::table('membership')->delete();
     DB::table('discussions')->delete();
     DB::table('comments')->delete();
     for ($i = 1; $i <= 5; ++$i) {
         $group = App\Group::create(['name' => 'Group nr ' . $i, 'body' => $faker->text]);
         // attach one random member to each group
         $group->users()->attach(App\User::orderByRaw('RAND()')->first());
         // add 10 discussions to each group
         for ($j = 1; $j <= 10; ++$j) {
             $discussion = App\Discussion::create(['name' => $faker->city, 'body' => $faker->text]);
             // attach one random author & group to each discussion
             $discussion->user_id = App\User::orderByRaw('RAND()')->first()->id;
             $discussion->group_id = App\Group::orderByRaw('RAND()')->first()->id;
             $discussion->save();
             // Add 10 comments to each discussion
             for ($k = 1; $k <= 10; ++$k) {
                 $comment = new \App\Comment();
                 $comment->body = $faker->text;
                 $comment->user_id = App\User::orderByRaw('RAND()')->first()->id;
                 $discussion->comments()->save($comment);
             }
         }
     }
 }
 public function run()
 {
     //$faker = Faker\Factory::create();//'fr_FR'//nl_NL//ja_JP
     for ($i = 0; $i < 10; $i++) {
         App\User::create(['email' => "user{$i}@user.com", 'username' => "alex{$i}", 'password' => bcrypt('111111'), 'active' => 1]);
     }
 }
Exemple #9
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::unguard();
     App\User::create(['name' => 'Mior Muhammad Zaki', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'Staff ICT 1', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::reguard();
 }
 public function run()
 {
     DB::table('users')->delete();
     $user = App\User::create(array('name' => 'admin', 'type' => 'admin', 'password' => '123456', 'email' => '*****@*****.**'));
     $user = App\User::create(array('name' => 'marzie', 'type' => 'shopOwner', 'password' => '123456', 'email' => '*****@*****.**'));
     $user = App\User::create(array('name' => 'test', 'type' => 'shopOwner', 'password' => '123456', 'email' => '*****@*****.**'));
 }
 public function run()
 {
     App\User::create(['id' => 1, 'name' => 'Bob Arezina', 'password' => bcrypt('password'), 'email' => '*****@*****.**']);
     App\User::create(['id' => 2, 'name' => 'Jackie Chan', 'password' => bcrypt('password'), 'email' => '*****@*****.**']);
     App\Blogpost::create(['id' => 1, 'user_id' => 2, 'title' => 'My latest movie', 'body' => 'Just letting everyone know that I will be in a movie in September 2015. I hope you will like it!']);
     App\BlogpostComment::create(['id' => 1, 'user_id' => 1, 'blogpost_id' => 1, 'comment' => 'Looking forward to it Jackie, hope to see you at the premiere.']);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::create(array('name' => 'Ellen Langelaar', 'email' => '*****@*****.**', 'password' => bcrypt('password')));
     App\User::create(array('name' => 'Test Admin', 'email' => '*****@*****.**', 'password' => bcrypt('test')));
     App\User::create(array('name' => 'Test Super', 'email' => '*****@*****.**', 'password' => bcrypt('test')));
     App\User::create(array('name' => 'Test Member', 'email' => '*****@*****.**', 'password' => bcrypt('test')));
 }
 /**
  * Handle a registration request for the application.
  *
  * @param  RegisterRequest $request
  * @return Response
  */
 public function postRegister(RegisterRequest $request)
 {
     // Registration form is valid, create user...
     $user = App\User::create($request->all());
     $this->auth->login($user);
     return redirect('/');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $users = array(array('id' => 1, 'name' => 'Satrio Wisnugroho', 'email' => '*****@*****.**', 'role' => 'admin', 'password' => bcrypt('admin123')), array('id' => 2, 'name' => 'List Operator', 'email' => '*****@*****.**', 'role' => 'operator', 'password' => bcrypt('operator123')), array('id' => 3, 'name' => 'List Member', 'email' => '*****@*****.**', 'role' => 'member', 'password' => bcrypt('member123')));
     foreach ($users as $user) {
         App\User::create($user);
     }
 }
 public function run()
 {
     $faker = Faker::create();
     foreach (range(1, 10) as $index) {
         App\User::create(['user_name' => $faker->name, 'email' => $faker->email, 'password' => $faker->password(6, 10)]);
     }
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker\Factory::create();
     // Add dev account until we enable registration
     $newUser = App\User::create(['name_first' => "Developer", 'name_last' => "EditMe", "affiliation_id" => 1, "email" => "*****@*****.**", 'password' => Hash::make('admin'), 'nomination_limit' => 5, 'active' => 'Y']);
     $role = \App\Role::find(1);
     $newUser->attachRole($role);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::truncate();
     App\User::create(['name' => 'safeer', 'email' => '*****@*****.**', 'gravatar' => 'label label-info']);
     App\User::create(['name' => 'gopinath', 'email' => '*****@*****.**', 'gravatar' => 'label label-success']);
     App\User::create(['name' => 'nishanth', 'email' => '*****@*****.**', 'gravatar' => 'label label-warning']);
     App\User::create(['name' => 'narayanan', 'email' => '*****@*****.**', 'gravatar' => 'label label-danger']);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('users')->truncate();
     foreach (range(0, 30) as $r) {
         $user = \Faker\Factory::create();
         App\User::create(['username' => $user->username, 'email' => $user->freeEmail, 'name' => $user->name, 'password' => Hash::make('secret')]);
     }
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Model::unguard();
     // $this->call(UserTableSeeder::class);
     //JWT demo
     App\User::create(['name' => 'Jad Joubran', 'email' => '*****@*****.**', 'password' => bcrypt('laravel_angular')]);
     Model::reguard();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Model::unguard();
     // $this->call(UserTableSeeder::class);
     //JWT demo
     App\User::create(['name' => 'Lino Steenkamp', 'email' => '*****@*****.**', 'password' => bcrypt('3klop3')]);
     Model::reguard();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // A known admin user
     App\User::create(['first_name' => 'Jane', 'last_name' => 'Doe', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'student_number' => '12345678', 'remember_token' => str_random(10), 'admin' => true]);
     // A known student user
     App\User::create(['first_name' => 'Billy', 'last_name' => 'Bob', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'student_number' => '87654321', 'remember_token' => str_random(10), 'lab' => 'L01']);
     factory(App\User::class, 20)->create();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // $this->call(UserTableSeeder::class);
     factory(App\Project::class, 20)->create();
     factory(App\UserPledge::class, 20)->create();
     $user = App\User::create(['name' => 'Someguy123', 'email' => '*****@*****.**', 'password' => bcrypt('test')]);
     $user->group = 10;
     $user->save();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker\Factory::create('es_VE');
     for ($i = 0; $i < 100; $i++) {
         $usuarios[$i] = ['nombre' => $faker->name, 'email' => $faker->email, 'password' => bcrypt('123456')];
     }
     App\User::insert($usuarios);
     App\User::create(['nombre' => "Gabriel Bejarano", 'Email' => "*****@*****.**", 'password' => bcrypt('gab23gab'), 'admin' => 1]);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker\Factory::create();
     // DB::table('users')->delete();
     $user = App\User::create(['name' => $faker->name, 'email' => $faker->email, 'password' => bcrypt('password'), 'remember_token' => str_random(10)]);
     $adminRole = App\Role::create(['name' => 'Admin']);
     $customerRole = App\Role::create(['name' => 'Customer']);
     $user->roles()->attach($adminRole->id);
 }
 public function run()
 {
     DB::table('users')->delete();
     App\User::create(['email' => '*****@*****.**', 'password' => 'password', 'name' => 'Антон Алексеев', 'role_id' => 1]);
     App\User::create(['email' => '*****@*****.**', 'password' => 'operator', 'name' => 'Тест Оператор', 'phone' => '88800', 'role_id' => 2]);
     App\User::create(['email' => '*****@*****.**', 'password' => 'manager', 'name' => 'Тест Менеджер', 'phone' => '89003332211', 'role_id' => 3]);
     App\User::create(['email' => '*****@*****.**', 'password' => 'client', 'name' => 'Тест Клиент', 'phone' => '89003332200', 'role_id' => 4]);
     App\User::create(['email' => '*****@*****.**', 'password' => 'client2', 'name' => 'Тест Клиент2', 'phone' => '89003332200', 'role_id' => 4]);
 }
Exemple #26
0
 public function run()
 {
     App\User::truncate();
     App\User::create(['role' => 'developer', 'name' => 'shxfee', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'remember_token' => str_random(10)]);
     App\User::create(['role' => 'developer', 'name' => 'haris', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'remember_token' => str_random(10)]);
     App\User::create(['role' => 'developer', 'name' => 'inad', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'remember_token' => str_random(10)]);
     App\User::create(['client_id' => 1, 'role' => 'client', 'name' => 'Visitmaldives', 'email' => '*****@*****.**', 'password' => bcrypt('password'), 'remember_token' => str_random(10)]);
     factory(App\User::class, 20)->create();
 }
Exemple #27
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //Model::unguard();
     App\User::create(['name' => 'Admin', 'email' => '*****@*****.**', 'password' => bcrypt('1234')]);
     App\User::create(['name' => 'Jeff', 'email' => '*****@*****.**', 'password' => bcrypt('134679')]);
     App\User::create(['name' => 'Dump', 'email' => '*****@*****.**', 'password' => bcrypt('134679')]);
     App\User::create(['name' => 'Dream', 'email' => '*****@*****.**', 'password' => bcrypt('134679')]);
     App\User::create(['name' => 'Ball', 'email' => '*****@*****.**', 'password' => bcrypt('134679')]);
     App\User::create(['name' => 'Kie', 'email' => '*****@*****.**', 'password' => bcrypt('134679')]);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //Model::unguard();
     App\User::create(['name' => 'Admin', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'View', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'Dear', 'email' => '*****@*****.**', 'password' => bcrypt('*****@*****.**')]);
     App\User::create(['name' => 'Aek', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'Pao', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'Za', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('users')->delete();
     $user1 = App\User::create(['email' => '*****@*****.**', 'password' => Hash::make('asdasd'), 'privilege_level' => 1]);
     $user2 = App\User::create(['email' => '*****@*****.**', 'password' => Hash::make('asdasd')]);
     $user3 = App\User::create(['email' => '*****@*****.**', 'password' => Hash::make('asdasd')]);
     $user1->profile()->create(['avatar_url' => '/images/profiles/1/avatar.png', 'first_name' => 'Shaji', 'last_name' => 'Periya']);
     $user2->profile()->create(['avatar_url' => '/images/profiles/2/avatar.jpg', 'first_name' => 'Koyi', 'last_name' => 'Moideen']);
     $user3->profile()->create(['avatar_url' => '/images/profiles/3/avatar.gif', 'first_name' => 'Ambrose', 'last_name' => 'Warma']);
 }
 public function testDeleteUser()
 {
     $this->resetModelEvents('App\\User');
     // Workaround for BUG 1181
     $resource = App\User::create(['username' => 'tester', 'name' => 'tester', 'password' => $password = str_random(15), 'password_confirmation' => $password, 'profile_id' => 2]);
     $this->resource('users')->destroy($resource->getKey());
 }