original_string: public function setKey($key)
      {
          $this->key = $key;
  
          // Initialize if we're the first instance.
          if (! session()->has('bzarzuela.filters')) {
              session(['bzarzuela.filters' => [$key => []]]);
          }
  
          return $this;
      }
code: public function setKey($key)
      {
          $this->key = $key;
  
          // Initialize if we're the first instance.
          if (! session()->has('bzarzuela.filters')) {
              session(['bzarzuela.filters' => [$key => []]]);
          }
  
          return $this;
      }
code_tokens: public function setKey ( $ key ) { $ this -> key = $ key ; // Initialize if we're the first instance. if ( ! session ( ) -> has ( 'bzarzuela.filters' ) ) { session ( [ 'bzarzuela.filters' => [ $ key => [ ] ] ] ) ; } return $ this ; }
docstring: Sets a unique key to hold the filter form data in the session.
  @param string $key Key name. Usually the model's table name
docstring_tokens: Sets a unique key to hold the filter form data in the session .