Changeset 4b7e2d3 for database/factories/FolderFactory.php
- Timestamp:
- 10/23/21 04:03:46 (3 years ago)
- Branches:
- develop, master
- Children:
- b39afb5
- Parents:
- c6b84df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
rc6b84df r4b7e2d3 6 6 use App\Models\Folder; 7 7 use Carbon\Carbon; 8 use Faker\Provider\DateTime; 8 9 use Illuminate\Database\Eloquent\Factories\Factory; 9 10 use Illuminate\Support\Facades\Storage; … … 27 28 28 29 $deptId = $this->faker->numberBetween('1', '15'); 30 29 31 $deptCode = Department::find($deptId)->code; 30 32 $name = $this->faker->unique()->firstName(); … … 33 35 Storage::disk('uploads')->makeDirectory($location); 34 36 35 36 37 return [ 37 38 'arch_id' => $deptCode . "/" . $this->faker->unique()->randomNumber(), 38 39 'name' => $name, 39 'note' => $this->faker->realText(),40 'note' => "This a note field", 40 41 'location' => $location, 41 42 'user_id' => $this->faker->numberBetween('1', '2'),
Note:
See TracChangeset
for help on using the changeset viewer.