Changeset 0df7a93 for app/Models
- Timestamp:
- 10/24/21 20:55:11 (3 years ago)
- Branches:
- develop, master
- Children:
- 7043def
- Parents:
- e0d3f94
- Location:
- app/Models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/Department.php
re0d3f94 r0df7a93 28 28 return $this->hasMany(Folder::class); 29 29 } 30 31 // public function getDeptId(){ 32 // return Department::where('id', $this->id)->get(); 33 // } 30 34 } -
app/Models/User.php
re0d3f94 r0df7a93 134 134 return User::where('id', $this->created_by)->pluck('username')->first(); 135 135 } 136 137 public function folder() { 138 return $this->hasMany(Folder::class); 139 } 136 140 }
Note:
See TracChangeset
for help on using the changeset viewer.