Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9131607

Browse files
author
Haizad
committed
add fortify auth
1 parent a7783c2 commit 9131607

File tree

14 files changed

+61250
-4
lines changed

14 files changed

+61250
-4
lines changed

app/Providers/FortifyServiceProvider.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,18 @@ public function boot()
3232
Fortify::updateUserProfileInformationUsing(UpdateUserProfileInformation::class);
3333
Fortify::updateUserPasswordsUsing(UpdateUserPassword::class);
3434
Fortify::resetUserPasswordsUsing(ResetUserPassword::class);
35+
36+
Fortify::loginView(function () {
37+
return view('auth.login');
38+
});
39+
Fortify::registerView(function () {
40+
return view('auth.register');
41+
});
42+
Fortify::requestPasswordResetLinkView(function () {
43+
return view('auth.passwords.email');
44+
});
45+
Fortify::resetPasswordView(function () {
46+
return view('auth.passwords.reset');
47+
});
3548
}
3649
}

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
// App\Providers\BroadcastServiceProvider::class,
175175
App\Providers\EventServiceProvider::class,
176176
App\Providers\RouteServiceProvider::class,
177+
App\Providers\FortifyServiceProvider::class,
177178

178179
],
179180

config/fortify.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105
'features' => [
106106
Features::registration(),
107107
Features::resetPasswords(),
108-
// Features::emailVerification(),
108+
Features::emailVerification(),
109109
Features::updateProfileInformation(),
110110
Features::updatePasswords(),
111-
Features::twoFactorAuthentication([
112-
'confirmPassword' => true,
113-
]),
111+
// Features::twoFactorAuthentication([
112+
// 'confirmPassword' => true,
113+
// ]),
114114
],
115115

116116
];

0 commit comments

Comments
 (0)