src/ShopifyApp/Traits/WebhookControllerTrait.php
public function handle($type)
    {
        // Get the job class and dispatch
        $jobClass = '\\App\\Jobs\\'.str_replace('-', '', ucwords($type, '-')).'Job';
        $jobClass::dispatch(
            Request::header('x-shopify-shop-domain'),
            json_decode(Request::getContent())
        );

        return Response::make('', 201);
    }
public function handle($type)
    {
        // Get the job class and dispatch
        $jobClass = '\\App\\Jobs\\'.str_replace('-', '', ucwords($type, '-')).'Job';
        $jobClass::dispatch(
            Request::header('x-shopify-shop-domain'),
            json_decode(Request::getContent())
        );

        return Response::make('', 201);
    }
public function handle ( $ type ) { // Get the job class and dispatch $ jobClass = '\\App\\Jobs\\' . str_replace ( '-' , '' , ucwords ( $ type , '-' ) ) . 'Job' ; $ jobClass :: dispatch ( Request :: header ( 'x-shopify-shop-domain' ) , json_decode ( Request :: getContent ( ) ) ) ; return Response :: make ( '' , 201 ) ; }
Handles an incoming webhook.

@param string $type The type of webhook

@return \Illuminate\Http\Response
Handles an incoming webhook .