| Package Data | |
|---|---|
| Maintainer Username: | bumbummen99 |
| Maintainer Contact: | git@maddela.org (Samuel Maddela) |
| Package Create Date: | 2020-02-15 |
| Package Last Update: | 2021-05-21 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-12 03:06:43 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,479 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A light package to provide easy authentication with the Steam API to your Laravel project.
SteamUserclass to easily retrieve a player's datacomposer require skyraptor/laravel-steam-login
php artisan vendor:publish --force --provider skyraptor\LaravelSteamLogin\SteamLoginServiceProvider
routes/web.php
use App\Http\Controllers\Auth\SteamLoginController;
use skyraptor\LaravelSteamLogin\Facades\SteamLogin;
//...
SteamLogin::routes(['controller' => SteamLoginController::class]);
php artisan make:controller Auth\SteamLoginController
App\Http\Controllers\Auth\SteamLoginController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use skyraptor\LaravelSteamLogin\Http\Controllers\AbstractSteamLoginController;
use skyraptor\LaravelSteamLogin\SteamUser;
class SteamLoginController extends AbstractSteamLoginController
{
/**
* {@inheritdoc}
*/
public function authenticated(Request $request, SteamUser $steamUser)
{
// auth logic goes here
// e.g. $user = User::where('steam_account_id', $steamUser->accountId)->first();
}
}
Thanks to these libs which led me to make this