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
887c21f0
Commit
887c21f0
authored
Mar 11, 2019
by
Viral Solani
Committed by
StyleCI Bot
Mar 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
37ad12d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AuthController.php
app/Http/Controllers/Api/V1/AuthController.php
+1
-0
Kernel.php
app/Http/Kernel.php
+2
-2
No files found.
app/Http/Controllers/Api/V1/AuthController.php
View file @
887c21f0
...
@@ -83,6 +83,7 @@ class AuthController extends APIController
...
@@ -83,6 +83,7 @@ class AuthController extends APIController
protected
function
respondWithToken
(
$token
)
protected
function
respondWithToken
(
$token
)
{
{
return
$token
;
return
$token
;
return
response
()
->
json
([
return
response
()
->
json
([
'access_token'
=>
$token
,
'access_token'
=>
$token
,
// 'token_type' => 'bearer',
// 'token_type' => 'bearer',
...
...
app/Http/Kernel.php
View file @
887c21f0
...
@@ -76,7 +76,7 @@ class Kernel extends HttpKernel
...
@@ -76,7 +76,7 @@ class Kernel extends HttpKernel
*/
*/
'access.routeNeedsRole'
=>
\App\Http\Middleware\RouteNeedsRole
::
class
,
'access.routeNeedsRole'
=>
\App\Http\Middleware\RouteNeedsRole
::
class
,
'access.routeNeedsPermission'
=>
\App\Http\Middleware\RouteNeedsPermission
::
class
,
'access.routeNeedsPermission'
=>
\App\Http\Middleware\RouteNeedsPermission
::
class
,
'jwt.auth'
=>
GetUserFromToken
::
class
,
'jwt.auth'
=>
GetUserFromToken
::
class
,
'jwt.refresh'
=>
RefreshToken
::
class
,
'jwt.refresh'
=>
RefreshToken
::
class
,
];
];
}
}
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