File: /home/eslinced-103/brise-edu.or.kr/routes/global_common.php
<?php
use App\Http\Controllers\SocialLoginController;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Session;
//language switcher
Route::prefix('/amuz-cms-global')->group(function (){
Route::get('/lang/{lang}',function($lang){
if (array_key_exists($lang, config('amuz.languages'))) {
Session::put('applocale', $lang);
}
return Redirect::back();
})->name('amuz.cms.lang.switcher');
Route::controller(SocialLoginController::class)->group(function(){
Route::get('/auth/{provider}/redirect',"socialLiteRedirect")->name('socialLiteRedirect');
Route::get('/auth/{provider}/callback',"socialLiteCallback")->name('socialLiteCallback');
Route::any('/logout/{provider}', 'logout')->name('social.logout');
});
});