Changeset df6e9ec for database/factories/FolderFactory.php
- Timestamp:
- 10/24/21 23:35:45 (3 years ago)
- Branches:
- develop, master
- Children:
- 495dd28
- Parents:
- 94f05dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
r94f05dc rdf6e9ec 27 27 public function definition() 28 28 { 29 $inputArray = [5, 15, 25, 35, 45, 55, 65, 75]; 30 $deptId = Arr::random($inputArray); 29 31 30 $deptCode = Department::find( 1)->code;32 $deptCode = Department::find($deptId)->code; 31 33 32 34 $name = $this->faker->unique()->firstName(); … … 41 43 'location' => $location, 42 44 'user_id' => 1, 43 'department_id' => 1,45 'department_id' => $deptId, 44 46 'is_important' => $this->faker->boolean, 45 47 'created_at' => now()
Note:
See TracChangeset
for help on using the changeset viewer.