Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Satini_pvduc
/
daito-utils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Satini_pvduc
2026-03-06 16:10:44 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
dbf65d6d90de460130958e011223c37f4d3c2dc7
dbf65d6d
1 parent
0341087e
update
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/Traits/HasDaitoResponse.php
src/Traits/HasDaitoResponse.php
View file @
dbf65d6
...
...
@@ -36,6 +36,13 @@ trait HasDaitoResponse
return
DaitoResponse
::
validateFailJson
(
$arrErrors
,
$message
,
$statusCode
);
}
protected
function
jsonOK
(
array
$arrData
=
array
(),
$statusCode
=
200
,
array
$arrHeaders
=
array
())
{
$arrPayload
=
$this
->
successResponse
(
''
,
$arrData
,
$statusCode
);
return
response
()
->
json
(
$arrPayload
,
$arrPayload
[
'status_code'
],
$arrHeaders
);
}
protected
function
jsonSuccess
(
$message
=
'Success'
,
array
$arrData
=
array
(),
$statusCode
=
200
,
array
$arrHeaders
=
array
())
{
$arrPayload
=
$this
->
successResponse
(
$message
,
$arrData
,
$statusCode
);
...
...
Please
register
or
sign in
to post a comment