PasswordController.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php namespace App\Http\Controllers\Auth;
  2. use App\Http\Controllers\Controller;
  3. use Illuminate\Contracts\Auth\Guard;
  4. use Illuminate\Contracts\Auth\PasswordBroker;
  5. use Illuminate\Foundation\Auth\ResetsPasswords;
  6. class PasswordController extends Controller
  7. {
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Password Reset Controller
  11. |--------------------------------------------------------------------------
  12. |
  13. | This controller is responsible for handling password reset requests
  14. | and uses a simple trait to include this behavior. You're free to
  15. | explore this trait and override any methods you wish to tweak.
  16. |
  17. */
  18. use ResetsPasswords;
  19. /**
  20. * Create a new password controller instance.
  21. *
  22. * @param \Illuminate\Contracts\Auth\Guard $auth
  23. * @param \Illuminate\Contracts\Auth\PasswordBroker $passwords
  24. * @return void
  25. */
  26. public function __construct(Guard $auth, PasswordBroker $passwords)
  27. {
  28. $this->auth = $auth;
  29. $this->passwords = $passwords;
  30. $this->middleware('guest');
  31. }
  32. }