File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 20
20
Route::get ('/privacy-policy ' , [PrivacyPolicyController::class, 'show ' ])->name ('policy.show ' );
21
21
}
22
22
23
- Route::group (['middleware ' => ['auth:sanctum ' , 'verified ' ]], function () {
23
+ $ authMiddleware = config ('jetstream.guard ' )
24
+ ? 'auth: ' .config ('jetstream.guard ' )
25
+ : 'auth ' ;
26
+
27
+ Route::group (['middleware ' => [$ authMiddleware , 'verified ' ]], function () {
24
28
// User & Profile...
25
29
Route::get ('/user/profile ' , [UserProfileController::class, 'show ' ])
26
30
->name ('profile.show ' );
Original file line number Diff line number Diff line change 16
16
Route::get ('/privacy-policy ' , [PrivacyPolicyController::class, 'show ' ])->name ('policy.show ' );
17
17
}
18
18
19
- Route::group (['middleware ' => ['auth:sanctum ' , 'verified ' ]], function () {
19
+ $ authMiddleware = config ('jetstream.guard ' )
20
+ ? 'auth: ' .config ('jetstream.guard ' )
21
+ : 'auth ' ;
22
+
23
+ Route::group (['middleware ' => [$ authMiddleware , 'verified ' ]], function () {
20
24
// User & Profile...
21
25
Route::get ('/user/profile ' , [UserProfileController::class, 'show ' ])
22
26
->name ('profile.show ' );
You can’t perform that action at this time.
0 commit comments