ForgotPasswordController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Http\Controllers\AdminAuth;
  3. use App\Http\Controllers\Controller;
  4. use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
  5. use Illuminate\Support\Facades\Password;
  6. class ForgotPasswordController extends Controller
  7. {
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Password Reset Controller
  11. |--------------------------------------------------------------------------
  12. |
  13. | This controller is responsible for handling password reset emails and
  14. | includes a trait which assists in sending these notifications from
  15. | your application to your users. Feel free to explore this trait.
  16. |
  17. */
  18. use SendsPasswordResetEmails;
  19. /**
  20. * Create a new controller instance.
  21. *
  22. * @return void
  23. */
  24. public function __construct()
  25. {
  26. $this->middleware('admin.guest');
  27. }
  28. /**
  29. * Display the form to request a password reset link.
  30. *
  31. * @return \Illuminate\Http\Response
  32. */
  33. public function showLinkRequestForm()
  34. {
  35. return view('admin.auth.passwords.email');
  36. }
  37. /**
  38. * Get the broker to be used during password reset.
  39. *
  40. * @return \Illuminate\Contracts\Auth\PasswordBroker
  41. */
  42. public function broker()
  43. {
  44. return Password::broker('admins');
  45. }
  46. }