Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
gambling
/
app
/
Http
/
Controllers
/
User
/
Auth
:
SocialiteController.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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); } } }