src/Auth/Auth.php
public function extend($key, $provider)
    {
        if (is_callable($provider)) {
            $provider = call_user_func($provider, $this->container);
        }

        $this->providers[$key] = $provider;
    }
public function extend($key, $provider)
    {
        if (is_callable($provider)) {
            $provider = call_user_func($provider, $this->container);
        }

        $this->providers[$key] = $provider;
    }
public function extend ( $ key , $ provider ) { if ( is_callable ( $ provider ) ) { $ provider = call_user_func ( $ provider , $ this -> container ) ; } $ this -> providers [ $ key ] = $ provider ; }
Extend the authentication layer with a custom provider.

@param string          $key
@param object|callable $provider

@return void
Extend the authentication layer with a custom provider .