Untitled

mail@pastecode.io avatar
unknown
php
3 years ago
327 B
2
Indexable
Never
<?php
//// APi code

$data = [
                'status'  => true, // true or false
                'message' => 'Any message' // eg: if successful message can be like Users::all(), or if error message can be like: email id is invalid or email and phone no is required.
            ];
            return response()->json($data);