Changeset 94f05dc for database


Ignore:
Timestamp:
10/24/21 23:23:54 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
df6e9ec
Parents:
fa80fbe
Message:

bug fixes

Location:
database
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • database/factories/FolderFactory.php

    rfa80fbe r94f05dc  
    2727    public function definition()
    2828    {
    29         $deptId = 15;
    3029
    31         $deptCode = Department::find($deptId)->code;
     30        $deptCode = Department::find(1)->code;
    3231
    3332        $name = $this->faker->unique()->firstName();
     
    4241            'location' => $location,
    4342            'user_id' => 1,
    44             'department_id' => $deptId,
     43            'department_id' => 1,
    4544            'is_important' => $this->faker->boolean,
    4645            'created_at' => now()
  • database/seeders/DatabaseSeeder.php

    rfa80fbe r94f05dc  
    1818        $this->call(RolesPermissionsTableSeeder::class);
    1919        $this->call(UsersTableSeeder::class);
    20         //$this->call(DepartmentsTableSeeder::class);
     20        $this->call(DepartmentsTableSeeder::class);
    2121        $this->call(FileTypesTableSeeder::class);
    22         //$this->call(FoldersTableSeeder::class);
     22        $this->call(FoldersTableSeeder::class);
    2323        //$this->call(FilesTableSeeder::class);
    2424    }
  • database/seeders/FoldersTableSeeder.php

    rfa80fbe r94f05dc  
    1717    public function run()
    1818    {
    19         Folder::factory()->count(500)->create();
     19        Folder::factory()->count(5)->create();
    2020        $folders = Folder::all();
    2121
Note: See TracChangeset for help on using the changeset viewer.