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
bf0bf778
Commit
bf0bf778
authored
Mar 11, 2018
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- send gravatar in payload
parent
5a9db0b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+2
-0
User.php
app/Models/Access/User/User.php
+1
-0
No files found.
app/Http/Controllers/Api/V1/UsersController.php
View file @
bf0bf778
...
@@ -7,6 +7,7 @@ use App\Models\Access\User\User;
...
@@ -7,6 +7,7 @@ use App\Models\Access\User\User;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Validator
;
use
Validator
;
use
JWTAuth
;
class
UsersController
extends
APIController
class
UsersController
extends
APIController
{
{
...
@@ -29,6 +30,7 @@ class UsersController extends APIController
...
@@ -29,6 +30,7 @@ class UsersController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
dd
(
JWTAuth
::
getPayload
());
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
return
UserResource
::
collection
(
return
UserResource
::
collection
(
...
...
app/Models/Access/User/User.php
View file @
bf0bf778
...
@@ -91,6 +91,7 @@ class User extends Authenticatable implements JWTSubject
...
@@ -91,6 +91,7 @@ class User extends Authenticatable implements JWTSubject
'first_name'
=>
$this
->
first_name
,
'first_name'
=>
$this
->
first_name
,
'last_name'
=>
$this
->
last_name
,
'last_name'
=>
$this
->
last_name
,
'email'
=>
$this
->
email
,
'email'
=>
$this
->
email
,
'picture'
=>
$this
->
getPicture
(),
'confirmed'
=>
$this
->
confirmed
,
'confirmed'
=>
$this
->
confirmed
,
'registered_at'
=>
$this
->
created_at
->
toIso8601String
(),
'registered_at'
=>
$this
->
created_at
->
toIso8601String
(),
'last_updated_at'
=>
$this
->
updated_at
->
toIso8601String
(),
'last_updated_at'
=>
$this
->
updated_at
->
toIso8601String
(),
...
...
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