Woocommerce Rest API与Laravel错误集成

时间:2018-08-09 09:02:23

标签: php wordpress laravel-5.6 woocommerce-rest-api

我正在使用woocommerce rest api 2.0php 7.1laravel 5.6+。我尝试为Woocommerce REST API安装Laravel 5包装器,但会引发错误。

这是错误:

Problem 1
    - Installation request for pixelpeter/laravel5-woocommerce-api-client 3.0 -> satisfiable by pixelpeter/laravel5-woocommerce-api-client[v3.0.0].
    - pixelpeter/laravel5-woocommerce-api-client v3.0.0 requires automattic/woocommerce 1.3.* -> satisfiable by automattic/woocommerce[1.3.0] but these conflict with your requirements or minimum-stability.

有没有可能解决此问题的方法?

1 个答案:

答案 0 :(得分:0)

这是需要automattic/woocommerce库,因此您应该首先安装该库。

Broadcast::channel('device.{device_id}', function ($device, $device_id) {
    return (int) $device->id === (int) $device_id;
});