source: database/seeders/DocumentsTableSeeder.php@ ea7b12a

develop
Last change on this file since ea7b12a was ea7b12a, checked in by beratkjufliju <kufliju@…>, 3 years ago

added files crud in table

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