Changeset 0a1fb54 for database/factories


Ignore:
Timestamp:
11/23/21 22:01:52 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
dbc5976
Parents:
4d73966
Message:

bug fixes

Location:
database/factories
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • database/factories/DepartmentFactory.php

    r4d73966 r0a1fb54  
    2828    {
    2929        $location = $this->faker->unique()->numberBetween(1, 10);
    30         Storage::disk('uploads')->makeDirectory('Departments/' . $location);
     30        Storage::disk('local')->makeDirectory('Departments/' . $location);
    3131        return [
    3232            'name' => "Department" . ' ' . $this->faker->unique()->firstName(),
  • database/factories/FolderFactory.php

    r4d73966 r0a1fb54  
    2727    public function definition()
    2828    {
    29         $inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
    30         $deptId = Arr::random($inputArray);
     29        //$inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
     30        //$deptId = Arr::random($inputArray);
    3131
    32         //$deptId = $this->faker->numberBetween(1, 10);
     32        $deptId = $this->faker->numberBetween(1, 10);
    3333
    3434        $deptCode = Department::find($deptId)->code;
     
    3737
    3838        $location = 'Departments' . DIRECTORY_SEPARATOR . $deptCode . DIRECTORY_SEPARATOR . $name;
    39         Storage::disk('uploads')->makeDirectory($location);
     39        Storage::disk('local')->makeDirectory($location);
    4040
    4141        return [
Note: See TracChangeset for help on using the changeset viewer.