source: database/seeders/DocumentsTableSeeder.php@ bd9e8e3

develop
Last change on this file since bd9e8e3 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: 4.2 KB
Line 
1<?php
2
3namespace Database\Seeders;
4
5use Carbon\Carbon;
6use Illuminate\Database\Seeder;
7
8class DocumentsTableSeeder extends Seeder
9{
10 /**
11 * Run the database seeds.
12 *
13 * @return void
14 */
15 public function run()
16 {
17 \DB::table('documents')->insert([
18 [
19 "name" => "Document test",
20 "arch_id" => "HR150",
21 "description" => "hahahah ah aha hshdash dhawud hwa",
22 "user_id" => "1",
23 "department_id" => "1",
24 "is_active" => "1",
25 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
26 ],
27 [
28 "name" => "Document tests",
29 "arch_id" => "HR1505",
30 "description" => "hahahah ah aha hshdash dhawud hwa",
31 "user_id" => "1",
32 "department_id" => "2",
33 "is_active" => "1",
34 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
35 ],
36 [
37 "name" => "Document test",
38 "arch_id" => "HR15033",
39 "description" => "hahahah ah aha hshdash dhawud hwa",
40 "user_id" => "1",
41 "department_id" => "1",
42 "is_active" => "1",
43 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
44 ],
45 [
46 "name" => "Document testasd",
47 "arch_id" => "HR150124",
48 "description" => "hahahah ah aha hshdash dhawud hwa",
49 "user_id" => "1",
50 "department_id" => "3",
51 "is_active" => "1",
52 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
53 ],
54 [
55 "name" => "Document test",
56 "arch_id" => "HR1501421",
57 "description" => "hahahah ah aha hshdash dhawud hwa",
58 "user_id" => "1",
59 "department_id" => "1",
60 "is_active" => "1",
61 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
62 ],
63 [
64 "name" => "Document test",
65 "arch_id" => "HR150213",
66 "description" => "hahahah ah aha hshdash dhawud hwa",
67 "user_id" => "1",
68 "department_id" => "1",
69 "is_active" => "1",
70 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
71 ],
72 [
73 "name" => "Document test",
74 "arch_id" => "HR150ad",
75 "description" => "hahahah ah aha hshdash dhawud hwa",
76 "user_id" => "1",
77 "department_id" => "2",
78 "is_active" => "1",
79 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
80 ],
81 [
82 "name" => "Document test",
83 "arch_id" => "HR150234",
84 "description" => "hahahah ah aha hshdash dhawud hwa",
85 "user_id" => "1",
86 "department_id" => "3",
87 "is_active" => "1",
88 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
89 ],
90 [
91 "name" => "Document test",
92 "arch_id" => "HR15012321",
93 "description" => "hahahah ah aha hshdash dhawud hwa",
94 "user_id" => "1",
95 "department_id" => "1",
96 "is_active" => "1",
97 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
98 ],
99 [
100 "name" => "Document test",
101 "arch_id" => "HR15021312",
102 "description" => "hahahah ah aha hshdash dhawud hwa",
103 "user_id" => "1",
104 "department_id" => "1",
105 "is_active" => "1",
106 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
107 ],
108 [
109 "name" => "Document test",
110 "arch_id" => "HR15312430",
111 "description" => "hahahah ah aha hshdash dhawud hwa",
112 "user_id" => "1",
113 "department_id" => "1",
114 "is_active" => "1",
115 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
116 ],
117 ]);
118 }
119}
Note: See TracBrowser for help on using the repository browser.