Closed badreddine5 closed 4 years ago
Hello @badreddine5
Thanks for the creating an issue. I checked with latest version with Laravel 8. Everything works fine for me. I think something wrong with woo-commerce or WordPress or Credentials.
site_url
, consumer_key
and consumer_secret
in the .env file in your Laravel applicationHere is the example
WOOCOMMERCE_STORE_URL=http://localhost/laravel-woocommerce
WOOCOMMERCE_CONSUMER_KEY=ck_935b89c270496c6fa42d0f7fe0468918e6107956
WOOCOMMERCE_CONSUMER_SECRET=cs_cc1a9bf4eb99bdc4d02adf6d0158b46357bc8f94
i fixed it by using "php artisan config:cache" whenever i made a change into env file
i followed the instructions from your docs and i tried to test it:
part of my code: use Codexshaper\WooCommerce\Facades\Product;
class InventoryController extends Controller { // public function list(){ $products = Product::all();
}
and when i run my code i get : cURL Error:
Codexshaper\WooCommerce\WooCommerceApi::all C:\Users*****\vendor\codexshaper\laravel-woocommerce\src\Traits\WooCommerceTrait.php:23