original_string: public function filterActions(\Illuminate\Database\Eloquent\Model $instance): array
      {
          $listButtons = [];
          if ($this->count()) {
              $buttons = $this->getActions();
              foreach ($buttons as &$button) {
                  if ($button->getValues($instance)) {
                      $listButtons[] = $button->render();
                      unset($button);
                  }
              }
          }
  
          return $listButtons;
      }
code: public function filterActions(\Illuminate\Database\Eloquent\Model $instance): array
      {
          $listButtons = [];
          if ($this->count()) {
              $buttons = $this->getActions();
              foreach ($buttons as &$button) {
                  if ($button->getValues($instance)) {
                      $listButtons[] = $button->render();
                      unset($button);
                  }
              }
          }
  
          return $listButtons;
      }
code_tokens: public function filterActions ( \ Illuminate \ Database \ Eloquent \ Model $ instance ) : array { $ listButtons = [ ] ; if ( $ this -> count ( ) ) { $ buttons = $ this -> getActions ( ) ; foreach ( $ buttons as & $ button ) { if ( $ button -> getValues ( $ instance ) ) { $ listButtons [ ] = $ button -> render ( ) ; unset ( $ button ) ; } } } return $ listButtons ; }
docstring: The method gets the buttons for the grid table
  
  @param \Illuminate\Database\Eloquent\Model $instance
  
  @return array
docstring_tokens: The method gets the buttons for the grid table