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
9852dc1d
Unverified
Commit
9852dc1d
authored
Mar 13, 2018
by
Viral Solani
Committed by
GitHub
Mar 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #171 from viralsolani/analysis-X05WvL
Apply fixes from StyleCI
parents
f9adde7e
2dab3228
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
PermissionController.php
app/Http/Controllers/Api/V1/PermissionController.php
+4
-5
No files found.
app/Http/Controllers/Api/V1/PermissionController.php
View file @
9852dc1d
...
@@ -50,7 +50,6 @@ class PermissionController extends APIController
...
@@ -50,7 +50,6 @@ class PermissionController extends APIController
return
new
PermissionResource
(
$permission
);
return
new
PermissionResource
(
$permission
);
}
}
/**
/**
* Creates the Resource for Permission.
* Creates the Resource for Permission.
*
*
...
@@ -111,11 +110,11 @@ class PermissionController extends APIController
...
@@ -111,11 +110,11 @@ class PermissionController extends APIController
* validateUser Permission Requests.
* validateUser Permission Requests.
*
*
* @param Request $request
* @param Request $request
* @param
Integer
$id
* @param
int
$id
*
*
* @return Validator object
* @return Validator object
*/
*/
public
function
validatePermission
(
Request
$request
,
$id
=
0
)
public
function
validatePermission
(
Request
$request
,
$id
=
0
)
{
{
$validation
=
Validator
::
make
(
$request
->
all
(),
[
$validation
=
Validator
::
make
(
$request
->
all
(),
[
'name'
=>
'required|max:191|unique:permissions,name,'
.
$id
,
'name'
=>
'required|max:191|unique:permissions,name,'
.
$id
,
...
...
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