Commit 7223e9a5 authored by Viral Solani's avatar Viral Solani

resolve error from user api

parent 793c4ef1
......@@ -69,8 +69,6 @@ class UsersController extends APIController
$this->repository->create($request);
event(new UserCreated($user));
return new UserResource(User::orderBy('created_at', 'desc')->first());
}
......@@ -92,8 +90,6 @@ class UsersController extends APIController
$updatedUser = $this->repository->update($user, $request);
event(new UserUpdated($user));
return new UserResource($updatedUser);
}
......
......@@ -34,6 +34,8 @@ return [
'Content-Type',
'X-Auth-Token',
'Origin',
'x-xsrf-token',
'x_csrftoken',
'Authorization',
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment