How to show error or success message in api.
-
Neel Bhardwaj
-
07-Feb-2022
-
0 comments
-
154
For error :
return response()->json([
'message' => 'Some error message.'
],404);
For success :
return response()->json([
'message' => 'Some success message.'
],200);
"Programming isn't about what you know,
it's about what you can figure out.”
Leave a reply
Thanks for comment. Your comment are shown after approve by ADMIN. THANKS!!
There is some server issue. Please try again. THANKS!!
Fatal error: Cannot declare class Connection, because the name is already in use in /home/d8ouyzxnuef4/public_html/thecoderjob.com/cj_admin/classes/Connection.php on line 3
Recent comments