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
252943e0
Commit
252943e0
authored
Jul 04, 2018
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send deleted item in delete apis for user , role and permisssion
parent
9a527ae4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
PermissionController.php
app/Http/Controllers/Api/V1/PermissionController.php
+1
-0
RolesController.php
app/Http/Controllers/Api/V1/RolesController.php
+1
-0
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+1
-0
No files found.
app/Http/Controllers/Api/V1/PermissionController.php
View file @
252943e0
...
@@ -106,6 +106,7 @@ class PermissionController extends APIController
...
@@ -106,6 +106,7 @@ class PermissionController extends APIController
$this
->
repository
->
delete
(
$permission
);
$this
->
repository
->
delete
(
$permission
);
return
$this
->
respond
([
return
$this
->
respond
([
'data'
=>
$permission
->
id
,
'message'
=>
trans
(
'alerts.backend.permissions.deleted'
),
'message'
=>
trans
(
'alerts.backend.permissions.deleted'
),
]);
]);
}
}
...
...
app/Http/Controllers/Api/V1/RolesController.php
View file @
252943e0
...
@@ -108,6 +108,7 @@ class RolesController extends APIController
...
@@ -108,6 +108,7 @@ class RolesController extends APIController
$this
->
repository
->
delete
(
$role
);
$this
->
repository
->
delete
(
$role
);
return
$this
->
respond
([
return
$this
->
respond
([
'data'
=>
$role
->
id
,
'message'
=>
trans
(
'alerts.backend.roles.deleted'
),
'message'
=>
trans
(
'alerts.backend.roles.deleted'
),
]);
]);
}
}
...
...
app/Http/Controllers/Api/V1/UsersController.php
View file @
252943e0
...
@@ -108,6 +108,7 @@ class UsersController extends APIController
...
@@ -108,6 +108,7 @@ class UsersController extends APIController
$this
->
repository
->
delete
(
$user
);
$this
->
repository
->
delete
(
$user
);
return
$this
->
respond
([
return
$this
->
respond
([
'data'
=>
$user
->
id
,
'message'
=>
trans
(
'alerts.backend.users.deleted'
),
'message'
=>
trans
(
'alerts.backend.users.deleted'
),
]);
]);
}
}
...
...
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