Commit bf0bf778 authored by Viral Solani's avatar Viral Solani

- send gravatar in payload

parent 5a9db0b6
......@@ -7,6 +7,7 @@ use App\Models\Access\User\User;
use App\Repositories\Backend\Access\User\UserRepository;
use Illuminate\Http\Request;
use Validator;
use JWTAuth;
class UsersController extends APIController
{
......@@ -29,6 +30,7 @@ class UsersController extends APIController
*/
public function index(Request $request)
{
dd(JWTAuth::getPayload());
$limit = $request->get('paginate') ? $request->get('paginate') : 25;
return UserResource::collection(
......
......@@ -91,6 +91,7 @@ class User extends Authenticatable implements JWTSubject
'first_name' => $this->first_name,
'last_name' => $this->last_name,
'email' => $this->email,
'picture' => $this->getPicture(),
'confirmed' => $this->confirmed,
'registered_at' => $this->created_at->toIso8601String(),
'last_updated_at' => $this->updated_at->toIso8601String(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment