aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/Requests/CreatePostRequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Posts/Requests/CreatePostRequest.php')
-rw-r--r--api/Posts/Requests/CreatePostRequest.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/api/Posts/Requests/CreatePostRequest.php b/api/Posts/Requests/CreatePostRequest.php
deleted file mode 100644
index be777ac..0000000
--- a/api/Posts/Requests/CreatePostRequest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace Api\Posts\Requests;
-
-use Infrastructure\Http\ApiRequest;
-
-class CreatePostRequest extends ApiRequest
-{
- public function authorize()
- {
- return true;
- }
-
- public function rules()
- {
- return [
- 'post' => 'array|required',
- 'post.email' => 'required|email',
- 'post.name' => 'required|string',
- 'post.password' => 'required|string|min:8'
- ];
- }
-
- public function attributes()
- {
- return [
- 'post.email' => 'the post\'s email'
- ];
- }
-}