Changeset e6c1f87 for database/factories/DepartmentFactory.php
- Timestamp:
- 10/18/21 19:54:18 (3 years ago)
- Branches:
- develop, master
- Children:
- b9c4a92
- Parents:
- bd9e8e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/DepartmentFactory.php
rbd9e8e3 re6c1f87 24 24 public function definition() 25 25 { 26 $location = $this->faker->unique()->numberBetween(1, 99);26 $location = $this->faker->unique()->numberBetween(1, 25); 27 27 Storage::disk('local')->makeDirectory('Departments/' . $location); 28 28 return [ 29 'id' => $this->faker->unique()->randomNumber(), 30 'name' => $this->faker->name(), 29 'name' => $this->faker->firstName() . " department", 31 30 'code' => $location, 32 'location' => 'Departments/' . $location,31 'location' => Storage::disk('local')->path('') . 'Departments/' . $location, 33 32 'user_id' => $this->faker->numberBetween('1', '2'), 34 33 'created_at' => Carbon::now()
Note:
See TracChangeset
for help on using the changeset viewer.