app/maguttiCms/Tools/JsonResponse.php
/**
     * Return the  json response
     * @return \Illuminate\Http\JsonResponse
     */
Return the  json response
@return \Illuminate\Http\JsonResponse
Return the json response @return \ Illuminate \ Http \ JsonResponse
public function apiResponse()
    {
        $result = [];
        $result['status'] = $this->getStatus();
        $result['error'] = $this->getError();
        $result['error_code'] = $this->error_code;
        $result['msg'] = $this->getMsg();
        $result['server_time'] = date("Y-m-d H:i:s");
        if ($this->getMeta() != '') {
            $result['meta'] = $this->getMeta();
        }
        $result['data'] = $this->getData();
        return response()->json($result, $this->getHttpStatus());
    }
public function apiResponse ( ) { $ result = [ ] ; $ result [ 'status' ] = $ this -> getStatus ( ) ; $ result [ 'error' ] = $ this -> getError ( ) ; $ result [ 'error_code' ] = $ this -> error_code ; $ result [ 'msg' ] = $ this -> getMsg ( ) ; $ result [ 'server_time' ] = date ( " Y-m-d H:i:s " ) ; if ( $ this -> getMeta ( ) != '' ) { $ result [ 'meta' ] = $ this -> getMeta ( ) ; } $ result [ 'data' ] = $ this -> getData ( ) ; return response ( ) -> json ( $ result , $ this -> getHttpStatus ( ) ) ; }
Return the  json response
 @return \Illuminate\Http\JsonResponse
Return the json response @return \ Illuminate \ Http \ JsonResponse