Skip to content

Instantly share code, notes, and snippets.

@heinthanth
Created July 21, 2019 08:13
Show Gist options
  • Save heinthanth/e4960a36a1532e67f2c6e1016dbf71f9 to your computer and use it in GitHub Desktop.
Save heinthanth/e4960a36a1532e67f2c6e1016dbf71f9 to your computer and use it in GitHub Desktop.
Route
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/auth/redirect/{provider}', 'SocialLoginController@redirect');
Route::get('/callback/{provider}', 'SocialLoginController@callback');
Route::get('/home', 'HomeController@index')->name('home');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment