Changeset 0df7a93 for app/Models


Ignore:
Timestamp:
10/24/21 20:55:11 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
7043def
Parents:
e0d3f94
Message:

bug fixes

Location:
app/Models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/Models/Department.php

    re0d3f94 r0df7a93  
    2828        return $this->hasMany(Folder::class);
    2929    }
     30
     31//    public function getDeptId(){
     32//        return Department::where('id', $this->id)->get();
     33//    }
    3034}
  • app/Models/User.php

    re0d3f94 r0df7a93  
    134134        return User::where('id', $this->created_by)->pluck('username')->first();
    135135    }
     136
     137    public function folder() {
     138        return $this->hasMany(Folder::class);
     139    }
    136140}
Note: See TracChangeset for help on using the changeset viewer.