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.3 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Database\Seeders;
|
---|
4 |
|
---|
5 | use App\Models\Department;
|
---|
6 | use Carbon\Carbon;
|
---|
7 | use Illuminate\Database\Seeder;
|
---|
8 |
|
---|
9 | class DepartmentsTableSeeder extends Seeder
|
---|
10 | {
|
---|
11 | /**
|
---|
12 | * Run the database seeds.
|
---|
13 | *
|
---|
14 | * @return void
|
---|
15 | */
|
---|
16 | public function run()
|
---|
17 | {
|
---|
18 | // \DB::table('departments')->insert([
|
---|
19 | // [
|
---|
20 | // "name" => "HR department",
|
---|
21 | // "code" => "14",
|
---|
22 | // "location" => "C:\laragon\www\SaveSpace\storage/Departments/14",
|
---|
23 | // "user_id" => "1",
|
---|
24 | // "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
|
---|
25 | // ],
|
---|
26 | // [
|
---|
27 | // "name" => "IT department",
|
---|
28 | // "code" => "01",
|
---|
29 | // "location" => "C:\laragon\www\SaveSpace\storage/Departments/01",
|
---|
30 | // "user_id" => "1",
|
---|
31 | // "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
|
---|
32 | // ],
|
---|
33 | // [
|
---|
34 | // "name" => "Business department",
|
---|
35 | // "code" => "12",
|
---|
36 | // "location" => "C:\laragon\www\SaveSpace\storage/Departments/12",
|
---|
37 | // "user_id" => "1",
|
---|
38 | // "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
|
---|
39 | // ],
|
---|
40 | // ]);
|
---|
41 |
|
---|
42 | Department::factory()->count(50)->create();
|
---|
43 | }
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.