我正在使用woocommerce rest api 2.0
和php 7.1
和laravel 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.
有没有可能解决此问题的方法?
答案 0 :(得分:0)
这是需要automattic/woocommerce库,因此您应该首先安装该库。
Broadcast::channel('device.{device_id}', function ($device, $device_id) {
return (int) $device->id === (int) $device_id;
});