Ignore:
Timestamp:
10/23/21 04:03:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b39afb5
Parents:
c6b84df
Message:

bug fixes, edited export, added fileSeeder for DB testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/FoldersTableSeeder.php

    rc6b84df r4b7e2d3  
    33namespace Database\Seeders;
    44
     5use App\Models\Department;
    56use App\Models\Folder;
    67use Carbon\Carbon;
     
    1617    public function run()
    1718    {
    18         Folder::factory()->count(300)->create();
     19        Folder::factory()->count(500)->create();
     20        $folders = Folder::all();
     21
     22        foreach ($folders as $folder) {
     23            $folder->department()->increment('no_of_folders');
     24        }
    1925    }
    2026}
Note: See TracChangeset for help on using the changeset viewer.