Skip to content

Commit 43879cd

Browse files
committed
wip
1 parent 01735cf commit 43879cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/helpers.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ function field(...$args)
88
return Field::new(...$args);
99
}
1010
}
11+
12+
if (! function_exists('data')) {
13+
function data($data)
14+
{
15+
return response()->json([
16+
'data' => $data
17+
]);
18+
}
19+
}

0 commit comments

Comments
 (0)