Cartalyst\Sentinel\Sessions\IlluminateSession::get PHP Method

get() public method

{@inheritDoc}
public get ( )
    public function get()
    {
        return $this->session->get($this->key);
    }

Usage Example

 public function testGet()
 {
     $session = new IlluminateSession($store = m::mock('Illuminate\\Session\\Store'), 'foo');
     $store->shouldReceive('get')->with('foo')->once()->andReturn('bar');
     $this->assertEquals('bar', $session->get());
 }