Ignore:
Timestamp:
10/13/21 15:44:57 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
120759b
Parents:
194a359
Message:

added documents crud, added last_seen_to_user, edited views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/DepartmentsTableSeeder.php

    r194a359 r24a616f  
    33namespace Database\Seeders;
    44
     5use App\Models\Department;
    56use Carbon\Carbon;
    67use Illuminate\Database\Seeder;
     
    1516    public function run()
    1617    {
    17         \DB::table('departments')->insert([
    18             [
    19                 "name" => "HR department",
    20                 "code" => "14",
    21                 "user_id" => "1",
    22                 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
    23             ],
    24             [
    25                 "name" => "IT department",
    26                 "code" => "01",
    27                 "user_id" => "1",
    28                 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
    29             ],
    30             [
    31                 "name" => "Business department",
    32                 "code" => "12",
    33                 "user_id" => "1",
    34                 "created_at" => Carbon::now()->format('Y-m-d H:i:s'),
    35             ],
    36         ]);
     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();
    3743    }
    3844}
Note: See TracChangeset for help on using the changeset viewer.