Ignore:
Timestamp:
10/15/21 00:21:44 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
d795fa6
Parents:
24a616f
Message:

added UserFactory, edited html, added delete to departments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/DepartmentsTableSeeder.php

    r24a616f r120759b  
    1616    public function run()
    1717    {
    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();
     18        Department::factory()->count(99)->create();
    4319    }
    4420}
Note: See TracChangeset for help on using the changeset viewer.