            'token' => $token
        ]);
    }

    public function user()
    {
        $token = JWTAuth::fromUser(auth()->user());

        return response()->json([
            'token' => $token
        ]);