for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Signifly\Shopify\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Signifly\Shopify\Webhooks\WebhookValidator;
class ValidateWebhook
{
private WebhookValidator $webhookValidator;
public function __construct(WebhookValidator $webhookValidator)
$this->webhookValidator = $webhookValidator;
}
public function handle(Request $request, Closure $next)
$this->webhookValidator->validateFromRequest($request);
return $next($request);