diff --git a/src/Support/Facades/Format.php b/src/Support/Facades/Format.php index a7e4d45..f0f2d06 100644 --- a/src/Support/Facades/Format.php +++ b/src/Support/Facades/Format.php @@ -21,6 +21,7 @@ /** * @method static \Jiannei\Response\Laravel\Support\Format data(mixed $data = null, string $message = '', int|\BackedEnum $code = 200, $error = null) + * @method static array|null get() * @method static array paginator(AbstractPaginator|AbstractCursorPaginator|Paginator $resource) * @method static array resourceCollection(ResourceCollection $collection) * @method static array jsonResource(JsonResource $resource) diff --git a/src/Support/Format.php b/src/Support/Format.php index 53615a5..97e42dc 100644 --- a/src/Support/Format.php +++ b/src/Support/Format.php @@ -45,6 +45,11 @@ public function response(): JsonResponse }); } + /** + * Get formatted data. + * + * @return array|null + */ public function get(): ?array { return $this->data;