original_string: public function setSessionValue($name, $value)
      {
          // In Laravel 5.4 the session changed to use their own custom implementation
          // instead of the one from Symfony. One of the changes was the set method
          // that was changed to put. Here we check if we are using the new one.
          if (method_exists($this->session, 'driver') && $this->session->driver() instanceof \Illuminate\Contracts\Session\Session) {
              $this->session->put($name, $value);
              return;
          }
          $this->session->set($name, $value);
      }
code: public function setSessionValue($name, $value)
      {
          // In Laravel 5.4 the session changed to use their own custom implementation
          // instead of the one from Symfony. One of the changes was the set method
          // that was changed to put. Here we check if we are using the new one.
          if (method_exists($this->session, 'driver') && $this->session->driver() instanceof \Illuminate\Contracts\Session\Session) {
              $this->session->put($name, $value);
              return;
          }
          $this->session->set($name, $value);
      }
code_tokens: public function setSessionValue ( $ name , $ value ) { // In Laravel 5.4 the session changed to use their own custom implementation // instead of the one from Symfony. One of the changes was the set method // that was changed to put. Here we check if we are using the new one. if ( method_exists ( $ this -> session , 'driver' ) && $ this -> session -> driver ( ) instanceof \ Illuminate \ Contracts \ Session \ Session ) { $ this -> session -> put ( $ name , $ value ) ; return ; } $ this -> session -> set ( $ name , $ value ) ; }
docstring: Sets a value in the session
  
  @param string $name
  @param string $value
docstring_tokens: Sets a value in the session