seven hace 1 día
padre
commit
5bd156d13d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Http/Controllers/Controller.php

+ 2 - 1
app/Http/Controllers/Controller.php

@@ -98,7 +98,8 @@ class Controller extends BaseController
         return response()->json([
             'code' => HttpStatus::OK,
             'timestamp' => time(),
-            'msg' => __('messages.' . HttpStatus::OK),
+            // 'msg' => __('messages.' . HttpStatus::OK),
+            'msg' => empty($msg) ? __('messages.' . HttpStatus::OK) : $msg,
             'data' => $data
         ]);
     }