Changeset 0a1fb54 for database/factories/FolderFactory.php
- Timestamp:
- 11/23/21 22:01:52 (3 years ago)
- Branches:
- master
- Children:
- dbc5976
- Parents:
- 4d73966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
r4d73966 r0a1fb54 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; … … 37 37 38 38 $location = 'Departments' . DIRECTORY_SEPARATOR . $deptCode . DIRECTORY_SEPARATOR . $name; 39 Storage::disk(' uploads')->makeDirectory($location);39 Storage::disk('local')->makeDirectory($location); 40 40 41 41 return [
Note:
See TracChangeset
for help on using the changeset viewer.