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
e9579009
Commit
e9579009
authored
Mar 13, 2019
by
Viral Solani
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/viralsolani/laravel-adminpanel
into develop
parents
8fb82d98
7747f1aa
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 @
e9579009
...
@@ -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 @
e9579009
...
@@ -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