Changeset b9c4a92 for database/factories/DepartmentFactory.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/DepartmentFactory.php
re6c1f87 rb9c4a92 24 24 public function definition() 25 25 { 26 $location = $this->faker-> unique()->numberBetween(1, 25);26 $location = $this->faker->randomNumber('1', '1'); 27 27 Storage::disk('local')->makeDirectory('Departments/' . $location); 28 28 return [ 29 'name' => $this->faker->firstName() . " department",29 'name' => "Department" . $this->faker->unique()->firstName(), 30 30 'code' => $location, 31 'location' => Storage::disk('local')->path('') . 'Departments /'. $location,31 'location' => Storage::disk('local')->path('') . 'Departments' . DIRECTORY_SEPARATOR . $location, 32 32 'user_id' => $this->faker->numberBetween('1', '2'), 33 33 'created_at' => Carbon::now()
Note:
See TracChangeset
for help on using the changeset viewer.