PHP code example of captbrogers / steam-login

1. Go to this page and download the library: Download captbrogers/steam-login library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

captbrogers / steam-login example snippets


Captbrogers\SteamLogin\Laravel\SteamLoginServiceProvider::class,

'SteamLogin' => Captbrogers\SteamLogin\Laravel\Facades\SteamLogin::class,

// view.blade.php
<a href="{{ SteamLogin::url() }}">Login via Steam!</a>

// routes/web.php
Route::get('/', function()
{
    return SteamLogin::validate();
});

// config/services.php
'steam' => [
    'login' => 'http://mywebsite.com/login',
],

SteamLogin::url(config(('services.steam.login'));