Skip to content

Commit 0f4438a

Browse files
committed
Update configuration stub with middleware option
1 parent 951d943 commit 0f4438a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

config/fortify.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
return [
66
'guard' => 'web',
7+
'middleware' => ['web'],
78
'passwords' => 'users',
89
'username' => 'email',
910
'email' => 'email',

stubs/fortify.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818

1919
'guard' => 'web',
2020

21+
/*
22+
|--------------------------------------------------------------------------
23+
| Fortify Routes Middleware
24+
|--------------------------------------------------------------------------
25+
|
26+
| Here you may specify which middleware Fortify will use while processing
27+
| the requested route. This configured value must be an array. You may
28+
| change the middleware listed below as required.
29+
|
30+
*/
31+
32+
'middleware' => ['web'],
33+
2134
/*
2235
|--------------------------------------------------------------------------
2336
| Fortify Password Broker

0 commit comments

Comments
 (0)