Continue MMC

This commit is contained in:
Александр Бабкин
2022-07-14 11:01:44 +03:00
parent 30950a120e
commit 97bacd4423
10 changed files with 158 additions and 24 deletions

View File

@@ -23,5 +23,11 @@ class AUK extends Model
{
return $this->hasMany('App\Models\AUK','parent_id','id');
}
public function mmcs()
{
return $this->belongsToMany(MMC::class,'auk_mmc','auk_id','mmc_id');
}
}

View File

@@ -16,5 +16,10 @@ class MMC extends Model
'size',
'mtime',
'atime',
];
];
public function auks()
{
return $this->belongsToMany(AUK::class);
}
}