Hi @rayzor
Your webhook will come to application as a post route:
Route::post('webhook', 'WebhookController@handle');
You need to disable csrf token for that route in the VerifyCsrfToken middleware:
add:
protected $except = [
'webhook',
];
Then do:
class WebhookController extends Controller
{
public function handle(Request $request)
{
dd($request);
}
}
in your controller's handle() method to see what you are getting.
Should be straight forward from there.
Also since laravel 7.0 it is easy to test your own application webhooks from within your application: https://laravel.com/docs/master/http-client#request-data
if not then just use https://www.postman.com/
Hope it helps!