Changeset e0d3f94
- Timestamp:
- 10/24/21 17:13:32 (3 years ago)
- Branches:
- develop, master
- Children:
- 0df7a93
- Parents:
- f40603e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
rf40603e re0d3f94 8 8 use Faker\Provider\DateTime; 9 9 use Illuminate\Database\Eloquent\Factories\Factory; 10 use Illuminate\Support\Arr; 10 11 use Illuminate\Support\Facades\Storage; 11 12 … … 26 27 public function definition() 27 28 { 29 $array = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145]; 28 30 29 $deptId = 5;31 $deptId = Arr::random($array); 30 32 31 33 $deptCode = Department::find($deptId)->code;
Note:
See TracChangeset
for help on using the changeset viewer.