Created
May 22, 2018 20:51
-
-
Save DCzajkowski/fbd4ef907fd903ce912c0e200df4f3b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Notification; | |
use Illuminate\Auth\Notifications\ResetPassword; | |
// ... | |
Notification::assertSentTo($user, ResetPassword::class, function ($notification, $channels) use ($token) { | |
return Hash::check($notification->token, $token->token) === true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment