Changeset ea7b12a for database/factories


Ignore:
Timestamp:
10/19/21 17:46:21 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
6b95845
Parents:
b9c4a92
Message:

added files crud in table

Location:
database/factories
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • database/factories/DepartmentFactory.php

    rb9c4a92 rea7b12a  
    2424    public function definition()
    2525    {
    26         $location = $this->faker->randomNumber('1', '1');
     26        $location = $this->faker->unique()->numberBetween('1', '9');
    2727        Storage::disk('local')->makeDirectory('Departments/' . $location);
    2828        return [
  • database/factories/DocumentFactory.php

    rb9c4a92 rea7b12a  
    2626    {
    2727
    28         $deptID = "1";
     28        $deptID = "5";
    2929        $name = $this->faker->unique()->firstName();
    3030        Storage::disk('local')->makeDirectory('Departments' . DIRECTORY_SEPARATOR . $deptID . DIRECTORY_SEPARATOR . $name);
Note: See TracChangeset for help on using the changeset viewer.