develop
Last change
on this file since 194a359 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Database\Seeders;
|
---|
4 |
|
---|
5 | use Carbon\Carbon;
|
---|
6 | use Illuminate\Database\Seeder;
|
---|
7 |
|
---|
8 | class 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 |
|
---|
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 |
|
---|
43 | //factory(App\Models\User::class, 50)->create();
|
---|
44 | }
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.