diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index c1ba545..094a285 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -89,4 +89,9 @@ class UserController extends Controller return back(); } + + public function manageOauth() + { + return view('user.oauths', ['user' => user()]); + } } diff --git a/resources/views/layouts/main-nav.blade.php b/resources/views/layouts/main-nav.blade.php index 13724a8..edd8fab 100644 --- a/resources/views/layouts/main-nav.blade.php +++ b/resources/views/layouts/main-nav.blade.php @@ -51,6 +51,10 @@ {{ __('Settings') }} + + {{ __('Social Logins') }} + + diff --git a/resources/views/user/oauths.blade.php b/resources/views/user/oauths.blade.php new file mode 100644 index 0000000..dd35090 --- /dev/null +++ b/resources/views/user/oauths.blade.php @@ -0,0 +1,15 @@ +{{-- Profile edit form --}} + +@extends('layouts.app') + +@section('content') +
+
+ @php(Widget::setLayout(3, 7)) + + {!! Widget::header(1, 'Social Logins') !!} + +

TODO

+
+
+@endsection diff --git a/routes/web.php b/routes/web.php index 4f04e3c..05d6a73 100644 --- a/routes/web.php +++ b/routes/web.php @@ -33,6 +33,7 @@ Route::group(['middleware' => 'auth'], function () { Route::get('edit', 'UserController@edit')->name('user.edit'); Route::post('edit', 'UserController@store')->name('user.store'); Route::post('create', 'TableController@storeNew')->name('table.storeNew'); + Route::get('logins', 'UserController@manageOauth')->name('user.manage-oauth'); }); });