src/SymfonyHttpDriver.php
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);
    }
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);
    }
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 ) ; }
Sets a value in the session

@param string $name
@param string $value
Sets a value in the session