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
191033ca
Unverified
Commit
191033ca
authored
Mar 14, 2018
by
Viral Solani
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #184 from viralsolani/analysis-XplBQk
Apply fixes from StyleCI
parents
bd48f1b3
05f81431
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+3
-6
UserRepository.php
app/Repositories/Backend/Access/User/UserRepository.php
+3
-4
No files found.
app/Http/Controllers/Api/V1/UsersController.php
View file @
191033ca
...
...
@@ -119,13 +119,10 @@ class UsersController extends APIController
*/
public
function
delteAll
(
Request
$request
)
{
$ids
=
$request
->
get
(
'ids'
);
if
(
isset
(
$ids
)
&&
!
empty
(
$ids
))
{
$ids
=
$request
->
get
(
'ids'
);
if
(
isset
(
$ids
)
&&
!
empty
(
$ids
))
{
$this
->
repository
->
deleteAll
(
$ids
);
}
}
}
/**
...
...
app/Repositories/Backend/Access/User/UserRepository.php
View file @
191033ca
...
...
@@ -189,7 +189,7 @@ class UserRepository extends BaseRepository
}
/**
* Delete User
* Delete User
.
*
* @param Model $user
*
...
...
@@ -213,7 +213,7 @@ class UserRepository extends BaseRepository
}
/**
* Delete All User
* Delete All User
.
*
* @param $ids
*
...
...
@@ -227,10 +227,9 @@ class UserRepository extends BaseRepository
throw
new
GeneralException
(
trans
(
'exceptions.backend.access.users.cant_delete_self'
));
}
$result
=
DB
::
table
(
"users"
)
->
whereIn
(
'id'
,
explode
(
","
,
$ids
))
->
delete
();
$result
=
DB
::
table
(
'users'
)
->
whereIn
(
'id'
,
explode
(
','
,
$ids
))
->
delete
();
dd
(
$result
);
}
/**
...
...
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