Changeset e0d3f94 for database


Ignore:
Timestamp:
10/24/21 17:13:32 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
0df7a93
Parents:
f40603e
Message:

edited FolderFactory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/factories/FolderFactory.php

    rf40603e re0d3f94  
    88use Faker\Provider\DateTime;
    99use Illuminate\Database\Eloquent\Factories\Factory;
     10use Illuminate\Support\Arr;
    1011use Illuminate\Support\Facades\Storage;
    1112
     
    2627    public function definition()
    2728    {
     29        $array = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145];
    2830
    29         $deptId = 5;
     31        $deptId = Arr::random($array);
    3032
    3133        $deptCode = Department::find($deptId)->code;
Note: See TracChangeset for help on using the changeset viewer.