Skip to content

Instantly share code, notes, and snippets.

@DCzajkowski
Created May 22, 2018 20:51
Show Gist options
  • Save DCzajkowski/fbd4ef907fd903ce912c0e200df4f3b3 to your computer and use it in GitHub Desktop.
Save DCzajkowski/fbd4ef907fd903ce912c0e200df4f3b3 to your computer and use it in GitHub Desktop.
<?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