app/Models/MainCate.php
// TRANSLATED CATEGORIES RELATIONSHIP WITH THEIR MAIN CATEGORY
TRANSLATED CATEGORIES RELATIONSHIP WITH THEIR MAIN CATEGORY
TRANSLATED CATEGORIES RELATIONSHIP WITH THEIR MAIN CATEGORY
public function trans_cates()
    {
        return $this->hasMany(
            self::class,
            'trans_of',
            'id'
        );
    }
public function trans_cates ( ) { return $ this -> hasMany ( self :: class , 'trans_of' , 'id' ) ; }
TRANSLATED CATEGORIES RELATIONSHIP WITH THEIR MAIN CATEGORY
TRANSLATED CATEGORIES RELATIONSHIP WITH THEIR MAIN CATEGORY
// RETURN ONE OR MORE TRANSLATED CATEGORY