MMC alpha ready

This commit is contained in:
Александр Бабкин
2022-07-14 17:00:24 +03:00
parent 58c92adfbc
commit ba97a6afc1
10 changed files with 154 additions and 144 deletions

View File

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

View File

@@ -20,6 +20,6 @@ class MMC extends Model
public function auks()
{
return $this->belongsToMany(AUK::class);
return $this->belongsToMany(AUK::class, 'auk_mmc', 'mmc_id', 'auk_id');
}
}