aboutsummaryrefslogtreecommitdiffhomepage
path: root/infrastructure/Auth/Requests
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/Auth/Requests')
-rw-r--r--infrastructure/Auth/Requests/LoginRequest.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/infrastructure/Auth/Requests/LoginRequest.php b/infrastructure/Auth/Requests/LoginRequest.php
new file mode 100644
index 0000000..5c5a3bb
--- /dev/null
+++ b/infrastructure/Auth/Requests/LoginRequest.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Infrastructure\Auth\Requests;
+
+use Infrastructure\Http\ApiRequest;
+
+class LoginRequest extends ApiRequest
+{
+ public function authorize()
+ {
+ return true;
+ }
+
+ public function rules()
+ {
+ return [
+ 'email' => 'required|email',
+ 'password' => 'required'
+ ];
+ }
+}