Laravel Shopify
  • 🛍️Laravel Shopify
  • Getting Started
    • 👋Installation
  • Usage
    • Prerequisites
    • Intializing the client
    • Making Requests
      • Pagination
      • GraphQL
    • Custom Requests
    • Custom Error Handling
    • Available Methods
      • Supported Method
    • Webhooks
Powered by GitBook
On this page
  1. Usage

Custom Requests

PreviousGraphQLNextCustom Error Handling

Last updated 1 year ago

You can make custom requests by using the methods matching the standard http verbs:

$shopify = app('shopify');

// GET
$shopify->get('products.json'); // returns Illuminate\Http\Client\Response

// POST
$shopify->post('products.json', $payload);

// PUT
$shopify->put('products/{product_id}.json', $payload);

// DELETE
$shopify->delete('products/{product_id}.json');

Each of the requests return an Illuminate\Http\Client\Response instance. Check the to see which methods are available.

Laravel documentation