Changeset e78295c for database/factories


Ignore:
Timestamp:
10/31/21 21:28:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
4521f25
Parents:
a55bb54
Message:

added version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/factories/FolderFactory.php

    ra55bb54 re78295c  
    2727    public function definition()
    2828    {
    29         //$inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
    30         //$deptId = Arr::random($inputArray);
     29        $inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
     30        $deptId = Arr::random($inputArray);
    3131
    32         $deptId = $this->faker->numberBetween(1, 10);
     32        //$deptId = $this->faker->numberBetween(1, 10);
    3333
    3434        $deptCode = Department::find($deptId)->code;
     
    4646            'user_id' => 1,
    4747            'department_id' => $deptId,
    48             'is_important' => $this->faker->boolean,
     48            'version' => 1,
    4949            'created_at' => now()
    5050        ];
Note: See TracChangeset for help on using the changeset viewer.