File "SocialiteController.php"
Full Path: /home/trinadezambia/public_html/gambling/app/Http/Controllers/User/Auth/SocialiteController.php
File size: 632 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Controllers\User\Auth;
use App\Http\Controllers\Controller;
use App\Lib\SocialLogin;
class SocialiteController extends Controller
{
public function socialLogin($provider)
{
$socialLogin = new SocialLogin($provider);
return $socialLogin->redirectDriver();
}
public function callback($provider)
{
$socialLogin = new SocialLogin($provider);
try {
return $socialLogin->login();
} catch (\Exception $e) {
$notify[] = ['error', $e->getMessage()];
return to_route('home')->withNotify($notify);
}
}
}