Changeset b9c4a92 for database/factories/DocumentFactory.php
- Timestamp:
- 10/18/21 23:00:23 (3 years ago)
- Branches:
- develop, master
- Children:
- ea7b12a
- Parents:
- e6c1f87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/DocumentFactory.php
re6c1f87 rb9c4a92 26 26 { 27 27 28 $deptID = $this->faker->numberBetween('1', '25'); 28 $deptID = "1"; 29 $name = $this->faker->unique()->firstName(); 30 Storage::disk('local')->makeDirectory('Departments' . DIRECTORY_SEPARATOR . $deptID . DIRECTORY_SEPARATOR . $name); 29 31 30 32 return [ 31 33 'arch_id' => $deptID . "/" . $this->faker->unique()->randomNumber(), 32 'name' => $ this->faker->unique()->firstName(),34 'name' => $name, 33 35 'description' => $this->faker->realText(), 34 36 'user_id' => $this->faker->numberBetween('1', '2'),
Note:
See TracChangeset
for help on using the changeset viewer.