Guest User

Untitled

a guest
Mar 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Seeder;
  4. use App\User;
  5.  
  6. class UserSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15. //Admin User
  16. $user = User::create([
  17. 'name' => 'admin',
  18. 'email' => 'adminl@gmail.com',
  19. 'password' => bcrypt('123456'),
  20. 'is_admin' => true,
  21. 'education' => 'test',
  22. 'address' => 'test'
  23. ]);
  24. // not admin user
  25. $user = User::create([
  26. 'name' => 'Test',
  27. 'email' => 'test@gmail.com',
  28. 'password' => bcrypt('123456'),
  29. 'education' => 'test',
  30. 'address' => 'test'
  31. ]);
  32. // not admin user
  33. $user = User::create([
  34. 'name' => 'Test',
  35. 'email' => 'test@gmail.com',
  36. 'password' => bcrypt('123456'),
  37. 'education' => 'test',
  38. 'address' => 'test'
  39. ]);
  40. }
  41. }
Add Comment
Please, Sign In to add comment