fix(file): fixed file model relationships
This commit is contained in:
parent
57d29c7ad4
commit
7abd0bf5b1
1 changed files with 3 additions and 3 deletions
|
@ -86,10 +86,10 @@ class File extends Model
|
|||
public function editedBy() {
|
||||
return $this->belongsTo(User::class, 'editedby');
|
||||
}
|
||||
public function getOwner() {
|
||||
return $this->belongsTo(User::class, 'owner');
|
||||
public function owner() {
|
||||
return $this->belongsTo(User::class, 'owner_id');
|
||||
}
|
||||
public function trackType() {
|
||||
public function track_type() {
|
||||
return $this->belongsTo(TrackType::class, 'track_type_id');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue