<?php

namespace App\Api\Controllers\User;

use App\Api\Controllers\ApiController;

class UserDetailsController extends ApiController
{
    /**
     * Retrieve the currently authenticated user.
     *
     * @return User
     */
    protected function retrieve()
    {
        if (!$user = \JWTAuth::authenticate()) {
            $response = $this->apiErrorResponse('User not found');

            return $response;
        }

        $response = $this->apiResponse($user->all()->toArray());

        return $response;
    }
}

<?php

namespace App\Api\Controllers\User;

use App\Api\Controllers\ApiController;

class UserDetailsController extends ApiController
{
    /**
     * Retrieve the currently authenticated user.
     *
     * @return User
     */
    protected function retrieve()
    {
        if (!$user = \JWTAuth::authenticate()) {
            $response = $this->apiErrorResponse('User not found');

            return $response;
        }

        $response = $this->apiResponse($user->toArray());

        return $response;
    }
}

Update GET /me to return only logged in users details
Update GET /me to return only logged in users details

