Ignore:
Timestamp:
10/23/21 04:03:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b39afb5
Parents:
c6b84df
Message:

bug fixes, edited export, added fileSeeder for DB testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/factories/FolderFactory.php

    rc6b84df r4b7e2d3  
    66use App\Models\Folder;
    77use Carbon\Carbon;
     8use Faker\Provider\DateTime;
    89use Illuminate\Database\Eloquent\Factories\Factory;
    910use Illuminate\Support\Facades\Storage;
     
    2728
    2829        $deptId = $this->faker->numberBetween('1', '15');
     30
    2931        $deptCode = Department::find($deptId)->code;
    3032        $name = $this->faker->unique()->firstName();
     
    3335        Storage::disk('uploads')->makeDirectory($location);
    3436
    35 
    3637        return [
    3738            'arch_id' => $deptCode . "/" . $this->faker->unique()->randomNumber(),
    3839            'name' => $name,
    39             'note' => $this->faker->realText(),
     40            'note' => "This a note field",
    4041            'location' => $location,
    4142            'user_id' => $this->faker->numberBetween('1', '2'),
Note: See TracChangeset for help on using the changeset viewer.