public function permissions() : BelongsToMany
    {
        $pivotTable = config('lia.database.user_permissions_table');

        $relatedModel = config('lia.database.permissions_model');

        return $this->belongsToMany($relatedModel, $pivotTable, 'user_id', 'permission_id');
    }
public function permissions() : BelongsToMany
    {
        $pivotTable = config('lia.database.user_permissions_table');

        $relatedModel = config('lia.database.permissions_model');

        return $this->belongsToMany($relatedModel, $pivotTable, 'user_id', 'permission_id');
    }
public function permissions ( ) : BelongsToMany { $ pivotTable = config ( 'lia.database.user_permissions_table' ) ; $ relatedModel = config ( 'lia.database.permissions_model' ) ; return $ this -> belongsToMany ( $ relatedModel , $ pivotTable , 'user_id' , 'permission_id' ) ; }
A User has and belongs to many permissions.

@return BelongsToMany
A User has and belongs to many permissions .