diff --git a/src/Helper/ApiHelper.php b/src/Helper/ApiHelper.php index 4a34f29..840acbe 100644 --- a/src/Helper/ApiHelper.php +++ b/src/Helper/ApiHelper.php @@ -46,7 +46,7 @@ public static function success(array $items = [], int $status = null): Collectio public static function failed(array $items = [], int $status = null): Collection { $res = [ - 'success' => true, + 'success' => false, 'status' => $status ?? Response::HTTP_UNPROCESSABLE_ENTITY, ]; @@ -91,4 +91,4 @@ public static function generateStubContents($stub, $stubVariables = [], $separat return $contents; } -} \ No newline at end of file +}