Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhileshdarjee/a81eefe5d644d93cc0a6030d3bdb6ad1 to your computer and use it in GitHub Desktop.
Save akhileshdarjee/a81eefe5d644d93cc0a6030d3bdb6ad1 to your computer and use it in GitHub Desktop.
Laravel 5 manually create password reset record in DB the laravel way
$token = app('auth.password.broker')->createToken(auth()->user());
OR
$token = app('auth.password.broker')->createToken($user);
$user must implement App\User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment