ResetPasswordRequest.php 492 B

12345678910111213141516171819202122232425262728293031
  1. <?php namespace App\Http\Requests\Auth;
  2. use App\Http\Requests\Request;
  3. class ResetPasswordRequest extends Request {
  4. /**
  5. * Get the validation rules that apply to the request.
  6. *
  7. * @return array
  8. */
  9. public function rules()
  10. {
  11. return [
  12. 'token' => 'required',
  13. 'email' => 'required',
  14. 'password' => 'required|confirmed',
  15. ];
  16. }
  17. /**
  18. * Determine if the user is authorized to make this request.
  19. *
  20. * @return bool
  21. */
  22. public function authorize()
  23. {
  24. return true;
  25. }
  26. }