Skip to content

2.x Configuration

Sam edited this page Apr 27, 2019 · 7 revisions

Config values can be retrieved using Laravel's Config facade e.g. Config::get('steam-login.<key>') or using the global config() helper which works in both Laravel and Lumen.

These values should be defined in your .env file.

Config Key env() Key
api_key STEAM_LOGIN_API_KEY / STEAM_API_KEY
method STEAM_LOGIN_PROFILE_DATA_METHOD / STEAM_LOGIN_PROFILE_METHOD
timeout STEAM_LOGIN_TIMEOUT
routes.login STEAM_LOGIN_ROUTE / STEAM_LOGIN_ROUTE_NAME
routes.auth STEAM_LOGIN_AUTH_ROUTE / STEAM_AUTH_ROUTE_NAME
Key Description Type Default
api_key Steam API Key used for retrieving a player's information if you choose to use the API method string null
method Method of retrieving a player's information. Choices are api, xml string xml
timeout Request timeout when calling any requests in guzzle integer 5
routes.login Route name for steam login route. Must be a valid defined route name string login.steam
routes.auth Route name for steam auth/handle route. Used for validating after returning from steam. Must be a valid defined route name string auth.steam

Next Step: Usage

Clone this wiki locally