- Timestamp:
- 10/24/21 23:23:54 (3 years ago)
- Branches:
- develop, master
- Children:
- df6e9ec
- Parents:
- fa80fbe
- Location:
- database
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
database/factories/FolderFactory.php
rfa80fbe r94f05dc 27 27 public function definition() 28 28 { 29 $deptId = 15;30 29 31 $deptCode = Department::find( $deptId)->code;30 $deptCode = Department::find(1)->code; 32 31 33 32 $name = $this->faker->unique()->firstName(); … … 42 41 'location' => $location, 43 42 'user_id' => 1, 44 'department_id' => $deptId,43 'department_id' => 1, 45 44 'is_important' => $this->faker->boolean, 46 45 'created_at' => now() -
database/seeders/DatabaseSeeder.php
rfa80fbe r94f05dc 18 18 $this->call(RolesPermissionsTableSeeder::class); 19 19 $this->call(UsersTableSeeder::class); 20 //$this->call(DepartmentsTableSeeder::class);20 $this->call(DepartmentsTableSeeder::class); 21 21 $this->call(FileTypesTableSeeder::class); 22 //$this->call(FoldersTableSeeder::class);22 $this->call(FoldersTableSeeder::class); 23 23 //$this->call(FilesTableSeeder::class); 24 24 } -
database/seeders/FoldersTableSeeder.php
rfa80fbe r94f05dc 17 17 public function run() 18 18 { 19 Folder::factory()->count(5 00)->create();19 Folder::factory()->count(5)->create(); 20 20 $folders = Folder::all(); 21 21
Note:
See TracChangeset
for help on using the changeset viewer.