return call_user_func(static::$createUrlCallback, $notifiable, $this->token);
}
return url(route('password.reset', [
'token' => $this->token,
'email' => $notifiable->getEmailForPasswordReset(),
], false));
}
}
return url(route('password.reset', [
'token' => $this->token,
'email' => $notifiable->getEmailForPasswordReset(),
], false));
}
{
return $this->shouldReturnJson($request, $exception)
? response()->json(['message' => $exception->getMessage()], 401)
: redirect()->guest($exception->redirectTo() ?? route('login'));
}
return $this->shouldReturnJson($request, $exception)
? response()->json(['message' => $exception->getMessage()], 401)
: redirect()->guest($exception->redirectTo() ?? route('login'));
}
public function assertRedirectToSignedRoute($name = null, $parameters = [])
{
if (! is_null($name)) {
$uri = route($name, $parameters);
}
PHPUnit::assertTrue(
{
if (! is_null($name)) {
$uri = route($name, $parameters);
}
PHPUnit::assertTrue(
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('password.reset', ['token' => $notification->token, 'email' => $user->email]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('password.reset', ['token' => $notification->token, 'email' => $user->email]);
}
);
}
Notification::fake();
ResetPassword::createUrlUsing(function ($user, string $token) {
return route('custom.password.reset', $token);
});
UserFactory::new()->create();
ResetPassword::createUrlUsing(function ($user, string $token) {
return route('custom.password.reset', $token);
});
UserFactory::new()->create();
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token, 'email' => $user->email]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token, 'email' => $user->email]);
}
);
}
Notification::fake();
ResetPassword::createUrlUsing(function ($user, string $token) {
return route('custom.password.reset', $token);
});
UserFactory::new()->create();
ResetPassword::createUrlUsing(function ($user, string $token) {
return route('custom.password.reset', $token);
});
UserFactory::new()->create();
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return (new MailMessage)
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
->subject(__('Reset Password Notification'))
->line(__('You are receiving this email because we received a password reset request for your account.'))
->action(__('Reset Password'), route('custom.password.reset', $token))
->line(__('If you did not request a password reset, no further action is required.'));
});
$message = $notification->toMail($user);
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
return ! is_null($notification->token)
&& $message->actionUrl === route('custom.password.reset', ['token' => $notification->token]);
}
);
}
]));
Route::get('/post/{id}', function () use ($post) {
return route('post.show', $post);
})->name('post.show');
$response = $this->withoutExceptionHandling()->get('/post/1');
Route::get('/post/{id}', function () use ($post) {
return route('post.show', $post);
})->name('post.show');
$response = $this->withoutExceptionHandling()->get('/post/1');