src/Helpers/EseyeSetup.php
public function get(EsiAuthentication $authentication = null): Eseye
    {

        if ($authentication) {

            tap($authentication, function ($auth) {

                $auth->client_id = env('EVE_CLIENT_ID');
                $auth->secret = env('EVE_CLIENT_SECRET');
            });

            return new Eseye($authentication);
        }

        // Return an unauthenticated Eseye instance
        return new Eseye;
    }
public function get(EsiAuthentication $authentication = null): Eseye
    {

        if ($authentication) {

            tap($authentication, function ($auth) {

                $auth->client_id = env('EVE_CLIENT_ID');
                $auth->secret = env('EVE_CLIENT_SECRET');
            });

            return new Eseye($authentication);
        }

        // Return an unauthenticated Eseye instance
        return new Eseye;
    }
public function get ( EsiAuthentication $ authentication = null ) : Eseye { if ( $ authentication ) { tap ( $ authentication , function ( $ auth ) { $ auth -> client_id = env ( 'EVE_CLIENT_ID' ) ; $ auth -> secret = env ( 'EVE_CLIENT_SECRET' ) ; } ) ; return new Eseye ( $ authentication ) ; } // Return an unauthenticated Eseye instance return new Eseye ; }
Gets an instance of Eseye.

We automatically add the CLIENT_ID and SHARED_SECRET configured
for this SeAT instance to the EsiAuthentication container.

@param \Seat\Eseye\Containers\EsiAuthentication|null $authentication

@return \Seat\Eseye\Eseye
@throws \Seat\Eseye\Exceptions\InvalidContainerDataException
Gets an instance of Eseye .