added new middleware called Callback

added role in the user database
added new function hasRole in user model
added new function getUserType in user model
modified registration to handle new column in user model
This commit is contained in:
2018-11-04 13:44:35 -06:00
parent 3d21d66dee
commit 156fe97c05
7 changed files with 74 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ Route::get('/', function () {
Auth::routes();
//Login display pages
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
Route::get('/callback', 'Auth\LoginController@handleProviderCallback');
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->middleware('callback');
Route::get('/logout', 'Auth\LoginController@logout');
//Dashboard Controller Display pages
Route::get('/dashboard', 'DashboardController@index');