source: database/seeders/UsersTableSeeder.php@ 24a616f

develop
Last change on this file since 24a616f was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[7304c7f]1<?php
2
3namespace Database\Seeders;
4
5use Carbon\Carbon;
6use Illuminate\Database\Seeder;
7
8class UsersTableSeeder extends Seeder
9{
10 /**
11 * Run the database seeds.
12 *
13 * @return void
14 */
15 public function run()
16 {
17 \DB::table("users")->insert([
18 "name" => "Berat",
19 "surname" => "Kjufliju",
20 "username" => "beratk",
21 "password" => bcrypt("123456"),
22 "email" => "kufliju@gmail.com",
23 "mobile_number" => "+38971201239",
24 "role_id" => 1,
25 "is_active" => true,
26 "is_confirmed" => true,
27 "created_at" => Carbon::now()
28 ]);
29
[194a359]30 \DB::table("users")->insert([
31 "name" => "John",
32 "surname" => "Doe",
33 "username" => "john_doe",
34 "password" => bcrypt("Johnsecret1!"),
35 "email" => "johndoe@hotmail.com",
36 "mobile_number" => "+389 71 111 222",
37 "role_id" => 2,
38 "is_active" => true,
39 "is_confirmed" => true,
40 "created_at" => Carbon::now()
41 ]);
42
[7304c7f]43 }
44}
Note: See TracBrowser for help on using the repository browser.