I am using an ecommerce platform that allows you to register a webhook to receive notifications when certain events happen on the site. How do i actually trigger this post request to register the webhook if i have no UI for it in Laravel or nothing to trigger it? Do i just put it in a script file and run it CLI php webhook.php ?
In order to a register a webhook, you've got to set your app up to be an Oauth2 client and then authenticate with the app. Once your app has been authorized, you'll then POST to the hooks resource per the API documentation on their resource page.
If you're not using BigCommerce, the flow above is likely still valid. You'll just need to read the API documentation and figure out what they want. There is usually a set of APIs to register/list/delete webhooks.