original_string: public function allPermissions() : Collection
      {
          return $this->roles()->with('permissions')->get()->pluck('permissions')->flatten()->merge($this->permissions);
      }
code: public function allPermissions() : Collection
      {
          return $this->roles()->with('permissions')->get()->pluck('permissions')->flatten()->merge($this->permissions);
      }
code_tokens: public function allPermissions ( ) : Collection { return $ this -> roles ( ) -> with ( 'permissions' ) -> get ( ) -> pluck ( 'permissions' ) -> flatten ( ) -> merge ( $ this -> permissions ) ; }
docstring: Get all permissions of user.
  
  @return mixed
docstring_tokens: Get all permissions of user .