| 1 | <?php namespace Arcanedev\LaravelAuth\Services; |
||
| 11 | class SocialAuthenticator |
||
| 12 | { |
||
| 13 | /* ----------------------------------------------------------------- |
||
| 14 | | Main Methods |
||
| 15 | | ----------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Check if social authentication is enabled. |
||
| 19 | * |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | 213 | public static function isEnabled() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get the supported drivers. |
||
| 29 | * |
||
| 30 | * @return \Illuminate\Support\Collection |
||
| 31 | */ |
||
| 32 | 9 | public static function drivers() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get the enabled drivers. |
||
| 39 | * |
||
| 40 | * @return \Illuminate\Support\Collection |
||
| 41 | */ |
||
| 42 | 6 | public static function enabledDrivers() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Check if the given driver is supported. |
||
| 51 | * |
||
| 52 | * @param string $driver |
||
| 53 | * |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | 3 | public static function isSupported($driver) |
|
| 60 | } |
||
| 61 |