updated returnAsResource parameters
This commit is contained in:
@@ -56,8 +56,8 @@ class UserController extends ApiController
|
||||
|
||||
return $this->respondAsResource(
|
||||
$collection,
|
||||
true,
|
||||
['total' => $total]
|
||||
['isCollection' => true,
|
||||
'appendData' => ['total' => $total]]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ class UserController extends ApiController
|
||||
{
|
||||
if (UserConductor::creatable() === true) {
|
||||
$user = User::create($request->all());
|
||||
return $this->respondAsResource(UserConductor::model($request, $user), false, [], null, HttpResponseCodes::HTTP_CREATED);
|
||||
return $this->respondAsResource(UserConductor::model($request, $user), ['respondCode' => HttpResponseCodes::HTTP_CREATED]);
|
||||
} else {
|
||||
return $this->respondForbidden();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user