- Timestamp:
- 10/24/21 23:35:45 (3 years ago)
- Branches:
- develop, master
- Children:
- 495dd28
- Parents:
- 94f05dc
- Location:
- database
- Files:
-
- 2 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() -
database/seeders/FoldersTableSeeder.php
r94f05dc rdf6e9ec 17 17 public function run() 18 18 { 19 Folder::factory()->count( 5)->create();19 Folder::factory()->count(900)->create(); 20 20 $folders = Folder::all(); 21 21
Note:
See TracChangeset
for help on using the changeset viewer.