Changeset c6b84df for database/factories/DepartmentFactory.php
- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/DepartmentFactory.php
r6b95845 rc6b84df 24 24 public function definition() 25 25 { 26 $location = $this->faker->unique()->numberBetween( '1', '9');27 Storage::disk(' local')->makeDirectory('Departments/' . $location);26 $location = $this->faker->unique()->numberBetween(1, 15); 27 Storage::disk('uploads')->makeDirectory('Departments/' . $location); 28 28 return [ 29 29 'name' => "Department" . $this->faker->unique()->firstName(), 30 30 'code' => $location, 31 'location' => Storage::disk('local')->path('') .'Departments' . DIRECTORY_SEPARATOR . $location,31 'location' => '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.