LoginRequest.php 462 B

1234567891011121314151617181920212223242526272829
  1. <?php namespace App\Http\Requests\Auth;
  2. use Illuminate\Foundation\Http\FormRequest;
  3. class LoginRequest extends FormRequest {
  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. }