Changeset ea7b12a for database/factories
- Timestamp:
- 10/19/21 17:46:21 (3 years ago)
- Branches:
- develop, master
- Children:
- 6b95845
- Parents:
- b9c4a92
- Location:
- database/factories
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/DepartmentFactory.php
rb9c4a92 rea7b12a 24 24 public function definition() 25 25 { 26 $location = $this->faker-> randomNumber('1', '1');26 $location = $this->faker->unique()->numberBetween('1', '9'); 27 27 Storage::disk('local')->makeDirectory('Departments/' . $location); 28 28 return [ -
database/factories/DocumentFactory.php
rb9c4a92 rea7b12a 26 26 { 27 27 28 $deptID = " 1";28 $deptID = "5"; 29 29 $name = $this->faker->unique()->firstName(); 30 30 Storage::disk('local')->makeDirectory('Departments' . DIRECTORY_SEPARATOR . $deptID . DIRECTORY_SEPARATOR . $name);
Note:
See TracChangeset
for help on using the changeset viewer.