LoginRequest.php 445 B

1234567891011121314151617181920212223242526272829
  1. <?php namespace App\Http\Requests\Auth;
  2. use App\Http\Requests\Request;
  3. class LoginRequest 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. 'email' => 'required', 'password' => 'required',
  13. ];
  14. }
  15. /**
  16. * Determine if the user is authorized to make this request.
  17. *
  18. * @return bool
  19. */
  20. public function authorize()
  21. {
  22. return true;
  23. }
  24. }