PasswordController.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. | Password Reset Controller
  10. |--------------------------------------------------------------------------
  11. |
  12. | This controller is responsible for handling password reset requests
  13. | and uses a simple trait to include this behavior. You're free to
  14. | explore this trait and override any methods you wish to tweak.
  15. |
  16. */
  17. use ResetsPasswords;
  18. /**
  19. * Create a new password controller instance.
  20. *
  21. * @param \Illuminate\Contracts\Auth\Guard $auth
  22. * @param \Illuminate\Contracts\Auth\PasswordBroker $passwords
  23. * @return void
  24. */
  25. public function __construct(Guard $auth, PasswordBroker $passwords)
  26. {
  27. $this->auth = $auth;
  28. $this->passwords = $passwords;
  29. $this->middleware('guest');
  30. }
  31. }