I've ran into the exact same issue. Did you ever figure this out?
Feb 13, 2017
4
Level 5
How to set a webhook for Mailgun?
Hello,
My app - among other things - sends emails to customers. The emails are delivered through MailGun. I am trying to setup a webhook for Mailgun, so that I am informed when a mail has been delivered.
I have set up a Route in routes/api.php as follows:
Route::post('project-name/webhooks/mailgun_info', 'MailgunController@info');
and in the MailgunController.php:
public function info(Request $request){
dd($request->all());
}
I thought this would be the minimum setup to receive info from MailGun but the webhook test returns:
TokenMismatchException in VerifyCsrfToken.php line 68
My setup is obviously wrong. Does anyone have experience with MailGun API? What would you change to make this work?
Please or to participate in this conversation.