<?php namespace Orchestra\Auth;

class AuthManager extends \Illuminate\Auth\AuthManager
{
    /**
     * {@inheritdoc}
     */
    protected function callCustomCreator($driver)
    {
        $custom = parent::callCustomCreator($driver);

        if ($custom instanceof Guard) {
            return $custom;
        }

        return new Guard($custom, $this->app['session.store']);
    }

    /**
     * {@inheritdoc}
     */
    public function createDatabaseDriver()
    {
        $provider = $this->createDatabaseProvider();

        return new Guard($provider, $this->app['session.store']);
    }

    /**
     * {@inheritdoc}
     */
    public function createEloquentDriver()
    {
        $provider = $this->createEloquentProvider();

        return new Guard($provider, $this->app['session.store']);
    }
}

<?php namespace Orchestra\Auth;

class AuthManager extends \Illuminate\Auth\AuthManager
{
    /**
     * {@inheritdoc}
     */
    public function createDatabaseDriver()
    {
        $provider = $this->createDatabaseProvider();

        return new Guard($provider, $this->app['session.store']);
    }

    /**
     * {@inheritdoc}
     */
    public function createEloquentDriver()
    {
        $provider = $this->createEloquentProvider();

        return new Guard($provider, $this->app['session.store']);
    }
}

Remove code which has been implemented upstream.
Remove code which has been implemented upstream.

Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
