LoginRequest.php 408 B

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