public function administrators() : BelongsToMany
    {
        $pivotTable = config('admin.database.role_users_table');

        $relatedModel = config('admin.database.users_model');

        return $this->belongsToMany($relatedModel, $pivotTable, 'role_id', 'user_id');
    }
public function administrators() : BelongsToMany
    {
        $pivotTable = config('admin.database.role_users_table');

        $relatedModel = config('admin.database.users_model');

        return $this->belongsToMany($relatedModel, $pivotTable, 'role_id', 'user_id');
    }
public function administrators ( ) : BelongsToMany { $ pivotTable = config ( 'admin.database.role_users_table' ) ; $ relatedModel = config ( 'admin.database.users_model' ) ; return $ this -> belongsToMany ( $ relatedModel , $ pivotTable , 'role_id' , 'user_id' ) ; }
A role belongs to many users.

@return BelongsToMany
A role belongs to many users .