Skip to content

Commit 38a29f7

Browse files
Update README.md
1 parent b7e6ff8 commit 38a29f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TestController extends HTTPResponse {
5353
"is_empty" => "",
5454
];
5555

56-
return $this->sendSuccess("success",$response);
56+
return $this->sendSuccess(SUCCESS,$response);
5757

5858
}
5959

@@ -69,7 +69,7 @@ class TestController extends HTTPResponse {
6969
]);
7070

7171
if ($validator->fails()) {
72-
return $this->validationFailed("all fields are required", $validator->errors());
72+
return $this->validationFailed(ALL_FIELDS_REQUIRED, $validator->errors());
7373
}
7474

7575
}
@@ -122,6 +122,10 @@ class TestController extends HTTPResponse {
122122

123123
```
124124

125+
126+
## Tips
127+
:bulb: **Tip:** Use Available Messages: SUCCESS , FAILED , ALL_FIELDS_REQUIRED , SOMETHING_WRONG , SOMETHING_WRONG_LATER
128+
125129
## Authors
126130
:point_right: [Navjot Singh Prince](https://github.com/navjotsinghprince)
127131

0 commit comments

Comments
 (0)