Created
October 11, 2022 16:41
-
-
Save ziadoz/5b93be1d6887696a7a1e873f2fd3c505 to your computer and use it in GitHub Desktop.
Generate Laravel Password Reset Token For Testing
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\Auth\Passwords\PasswordBroker; | |
$token = app()->get(PasswordBroker::class)->createToken( | |
User::query()->where('email', '=', 'me@example.com')->first() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment