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
4d695ab8
Commit
4d695ab8
authored
Mar 13, 2018
by
Viral Solani
Committed by
StyleCI Bot
Mar 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
17870f75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+11
-11
api.php
routes/api.php
+1
-1
No files found.
app/Http/Controllers/Api/V1/UsersController.php
View file @
4d695ab8
...
...
@@ -2,13 +2,13 @@
namespace
App\Http\Controllers\Api\V1
;
use
Validator
;
use
Illuminate\Http\Request
;
use
App\Models\Access\User\User
;
use
App\Http\Resources\UserResource
;
use
App\Events\Backend\Access\User\UserCreated
;
use
App\Events\Backend\Access\User\UserUpdated
;
use
App\Http\Resources\UserResource
;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
Illuminate\Http\Request
;
use
Validator
;
class
UsersController
extends
APIController
{
...
...
@@ -52,8 +52,8 @@ class UsersController extends APIController
return
new
UserResource
(
$user
);
}
/**
* Create User
/**
* Create User
.
*
* @param Request $request
*
...
...
@@ -75,10 +75,10 @@ class UsersController extends APIController
}
/**
* Update User
* Update User
.
*
* @param Request $request
* @param User $user
* @param User
$user
*
* @return \Illuminate\Http\JsonResponse
*/
...
...
@@ -98,7 +98,7 @@ class UsersController extends APIController
}
/**
* Delete User
* Delete User
.
*
* @param User $user
* @param Request $request
...
...
@@ -115,7 +115,7 @@ class UsersController extends APIController
}
/**
* Return the deactivate users
* Return the deactivate users
.
*
* @param Request
*
...
...
@@ -147,7 +147,7 @@ class UsersController extends APIController
}
/**
* validateUser User
* validateUser User
.
*
* @param $request
* @param $action
...
...
routes/api.php
View file @
4d695ab8
...
...
@@ -28,7 +28,7 @@ Route::group(['namespace' => 'Api\V1', 'prefix' => 'v1', 'as' => 'v1.'], functio
// Route::post('password/reset', 'ResetPasswordController@reset')->name('password.reset');
});
Route
::
resource
(
'users'
,
'UsersController'
,
[
'except'
=>
[
'edit'
,
'udpate'
]]);
Route
::
resource
(
'users'
,
'UsersController'
,
[
'except'
=>
[
'edit'
,
'udpate'
]]);
// Users
Route
::
group
([
'prefix'
=>
'users'
],
function
()
{
...
...
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