public function translations()
    {
        return $this->hasMany(Translation::class, 'foreign_key', $this->getKeyName())
            ->where('table_name', $this->getTable())
            ->whereIn('locale', config('admin.multilingual.locales', []));
    }
public function translations()
    {
        return $this->hasMany(Translation::class, 'foreign_key', $this->getKeyName())
            ->where('table_name', $this->getTable())
            ->whereIn('locale', config('admin.multilingual.locales', []));
    }
public function translations ( ) { return $ this -> hasMany ( Translation :: class , 'foreign_key' , $ this -> getKeyName ( ) ) -> where ( 'table_name' , $ this -> getTable ( ) ) -> whereIn ( 'locale' , config ( 'admin.multilingual.locales' , [ ] ) ) ; }
Load translations relation.

@return mixed
Load translations relation .