Blame view

api/database/seeds/UserSeeder.php 723 Bytes
0d8c0f816   Thanasis Naskos   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  <?php
  
  use Illuminate\Database\Seeder;
  use Illuminate\Support\Facades\DB;
  use Illuminate\Support\Facades\Hash;
  
  class UserSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          DB::table('users')->insert([
              'name'       => 'Thanasis Naskos',
              'email'      => 'anaskos@csd.auth.gr',
              'password'   => Hash::make('password'),
              'is_admin'   => true
          ]);
  
          DB::table('users')->insert([
              'name'       => 'Chris Bellas',
              'email'      => 'chribell@csd.auth.gr',
              'password'   => Hash::make('password'),
              'is_admin'   => true
          ]);
      }
  }