Changeset e78295c for database/factories
- Timestamp:
- 10/31/21 21:28:46 (3 years ago)
- Branches:
- master
- Children:
- 4521f25
- Parents:
- a55bb54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
ra55bb54 re78295c 27 27 public function definition() 28 28 { 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); 31 31 32 $deptId = $this->faker->numberBetween(1, 10);32 //$deptId = $this->faker->numberBetween(1, 10); 33 33 34 34 $deptCode = Department::find($deptId)->code; … … 46 46 'user_id' => 1, 47 47 'department_id' => $deptId, 48 ' is_important' => $this->faker->boolean,48 'version' => 1, 49 49 'created_at' => now() 50 50 ];
Note:
See TracChangeset
for help on using the changeset viewer.