Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
7223e9a5
Commit
7223e9a5
authored
Mar 13, 2018
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve error from user api
parent
793c4ef1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+0
-4
cors.php
config/cors.php
+2
-0
No files found.
app/Http/Controllers/Api/V1/UsersController.php
View file @
7223e9a5
...
...
@@ -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
);
}
...
...
config/cors.php
View file @
7223e9a5
...
...
@@ -34,6 +34,8 @@ return [
'Content-Type'
,
'X-Auth-Token'
,
'Origin'
,
'x-xsrf-token'
,
'x_csrftoken'
,
'Authorization'
,
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment