public function refresh()
    {
        $token = Auth::guard()->refresh();

        return response()->json([
            'status' => 'ok',
            'token' => $token,
            'expires_in' => Auth::guard()->factory()->getTTL() * 60
        ]);
    }
public function refresh()
    {
        $token = Auth::guard()->refresh();

        return response()->json([
            'status' => 'ok',
            'token' => $token,
            'expires_in' => Auth::guard()->factory()->getTTL() * 60
        ]);
    }
public function refresh ( ) { $ token = Auth :: guard ( ) -> refresh ( ) ; return response ( ) -> json ( [ 'status' => 'ok' , 'token' => $ token , 'expires_in' => Auth :: guard ( ) -> factory ( ) -> getTTL ( ) * 60 ] ) ; }
Refresh a token.

@return \Illuminate\Http\JsonResponse
Refresh a token .