Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Seeder;
- use App\User;
- class UserSeeder extends Seeder
- {
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- //Admin User
- $user = User::create([
- 'name' => 'admin',
- 'email' => 'adminl@gmail.com',
- 'password' => bcrypt('123456'),
- 'is_admin' => true,
- 'education' => 'test',
- 'address' => 'test'
- ]);
- // not admin user
- $user = User::create([
- 'name' => 'Test',
- 'email' => 'test@gmail.com',
- 'password' => bcrypt('123456'),
- 'education' => 'test',
- 'address' => 'test'
- ]);
- // not admin user
- $user = User::create([
- 'name' => 'Test',
- 'email' => 'test@gmail.com',
- 'password' => bcrypt('123456'),
- 'education' => 'test',
- 'address' => 'test'
- ]);
- }
- }
Add Comment
Please, Sign In to add comment