File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Validation \ValidationException ;
6
6
use Laravel \Fortify \Contracts \FailedPasswordResetLinkRequestResponse as FailedPasswordResetLinkRequestResponseContract ;
7
+ use Laravel \Fortify \Fortify ;
7
8
8
9
class FailedPasswordResetLinkRequestResponse implements FailedPasswordResetLinkRequestResponseContract
9
10
{
@@ -35,12 +36,12 @@ public function toResponse($request)
35
36
{
36
37
if ($ request ->wantsJson ()) {
37
38
throw ValidationException::withMessages ([
38
- ' email ' => [trans ($ this ->status )],
39
+ Fortify:: email () => [trans ($ this ->status )],
39
40
]);
40
41
}
41
42
42
43
return back ()
43
- ->withInput ($ request ->only (' email ' ))
44
- ->withErrors ([' email ' => trans ($ this ->status )]);
44
+ ->withInput ($ request ->only (Fortify:: email () ))
45
+ ->withErrors ([Fortify:: email () => trans ($ this ->status )]);
45
46
}
46
47
}
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Validation \ValidationException ;
6
6
use Laravel \Fortify \Contracts \FailedPasswordResetResponse as FailedPasswordResetResponseContract ;
7
+ use Laravel \Fortify \Fortify ;
7
8
8
9
class FailedPasswordResetResponse implements FailedPasswordResetResponseContract
9
10
{
@@ -35,12 +36,12 @@ public function toResponse($request)
35
36
{
36
37
if ($ request ->wantsJson ()) {
37
38
throw ValidationException::withMessages ([
38
- ' email ' => [trans ($ this ->status )],
39
+ Fortify:: email () => [trans ($ this ->status )],
39
40
]);
40
41
}
41
42
42
43
return back ()
43
- ->withInput ($ request ->only (' email ' ))
44
- ->withErrors ([' email ' => trans ($ this ->status )]);
44
+ ->withInput ($ request ->only (Fortify:: email () ))
45
+ ->withErrors ([Fortify:: email () => trans ($ this ->status )]);
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments