protected function getResponse( $response ) {
		if ( is_string( $response ) ) {
			return Response::output( $response );
		}

		if ( is_array( $response ) ) {
			return Response::json( $response );
		}

		if ( $response instanceof ResponsableInterface ) {
			return $response->toResponse();
		}

		return $response;
	}
protected function getResponse( $response ) {
		if ( is_string( $response ) ) {
			return Response::output( $response );
		}

		if ( is_array( $response ) ) {
			return Response::json( $response );
		}

		if ( $response instanceof ResponsableInterface ) {
			return $response->toResponse();
		}

		return $response;
	}
protected function getResponse ( $ response ) { if ( is_string ( $ response ) ) { return Response :: output ( $ response ) ; } if ( is_array ( $ response ) ) { return Response :: json ( $ response ) ; } if ( $ response instanceof ResponsableInterface ) { return $ response -> toResponse ( ) ; } return $ response ; }
Convert a user returned response to a ResponseInterface instance if possible.
Return the original value if unsupported.

@param  mixed $response
@return mixed
Convert a user returned response to a ResponseInterface instance if possible . Return the original value if unsupported .