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
3ae04385
Commit
3ae04385
authored
Mar 13, 2018
by
cygnet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
git://github.com/viralsolani/laravel-adminpanel
into develop
parents
c6b00bef
b5fd5a81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
PagesController.php
app/Http/Controllers/Api/V1/PagesController.php
+5
-8
PermissionController.php
app/Http/Controllers/Api/V1/PermissionController.php
+2
-2
RolesController.php
app/Http/Controllers/Api/V1/RolesController.php
+1
-1
No files found.
app/Http/Controllers/Api/V1/PagesController.php
View file @
3ae04385
...
...
@@ -69,7 +69,7 @@ class PagesController extends APIController
/**
* Update Page.
*
*
* @param Page $page
* @param Request $request
*
...
...
@@ -92,7 +92,7 @@ class PagesController extends APIController
/**
* Delete Page.
*
*
* @param Page $page
* @param DeletePageRequest $request
*
...
...
@@ -107,21 +107,18 @@ class PagesController extends APIController
]);
}
/**
* validateUser Pages Requests.
*
* @param Request $request
* @param int $id
*
*
* @return \Illuminate\Http\JsonResponse
*/
public
function
validatePages
(
Request
$request
,
$id
=
0
)
public
function
validatePages
(
Request
$request
,
$id
=
0
)
{
$validation
=
Validator
::
make
(
$request
->
all
(),
[
'title'
=>
'required|max:191|unique:pages,title,'
.
$id
,
'title'
=>
'required|max:191|unique:pages,title,'
.
$id
,
'description'
=>
'required'
,
]);
...
...
app/Http/Controllers/Api/V1/PermissionController.php
View file @
3ae04385
...
...
@@ -92,8 +92,8 @@ class PermissionController extends APIController
}
/**
* Delete permission
*
* Delete permission
.
*
* @param Role $role
* @param DeleteRoleRequest $request
*
...
...
app/Http/Controllers/Api/V1/RolesController.php
View file @
3ae04385
...
...
@@ -94,7 +94,7 @@ class RolesController extends APIController
/**
* Delete Role.
*
*
* @param Role $role
* @param Request $request
*
...
...
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